Use named volume for database

This commit is contained in:
Patrick Jentsch 2019-09-09 12:05:36 +02:00
parent 50a31967f2
commit dc975935ca

View File

@ -40,10 +40,13 @@ services:
env_file: db.env
image: postgres:alpine
volumes:
- /opaque_database:/var/lib/postgresql/data
- db:/var/lib/postgresql/data
redis:
deploy:
placement:
constraints:
- node.role == manager
image: redis:alpine
volumes:
db: