docker-compose: Use a named volume instead of a local dir
This commit is contained in:
parent
50832e109f
commit
1cdca00e73
1 changed files with 6 additions and 5 deletions
|
@ -1,9 +1,11 @@
|
|||
version: "3"
|
||||
---
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:10.3
|
||||
volumes:
|
||||
- ./data/db:/var/lib/mysql
|
||||
- db_data:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: etherpad
|
||||
|
@ -20,6 +22,5 @@ services:
|
|||
depends_on:
|
||||
- "db"
|
||||
|
||||
# volumes:
|
||||
# - data/etherpad:/var/www/html/documents
|
||||
|
||||
volumes:
|
||||
db_data: {}
|
||||
|
|
Loading…
Reference in a new issue