Skip to content
Snippets Groups Projects
Commit 1118beaf authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add storage as volume

parent 3913663c
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ services:
ports:
- 5000:5000
volumes:
- /mnt/opaque:/mnt/opaque
- storage:/mnt/opaque
- ./app:/home/opaque/app
- ./config.py:/home/opaque/config.py
- ./logs:/home/opaque/logs
......@@ -45,10 +45,19 @@ services:
env_file: db.env
image: postgres:alpine
volumes:
- /opaque_database:/var/lib/postgresql/data
- /srv/opaque/database:/var/lib/postgresql/data
redis:
deploy:
placement:
constraints:
- node.role == manager
image: redis:alpine
volumes:
storage:
driver: local
driver_opts:
device: "//127.0.0.1/opaque_storage"
o: "gid=1000,password=opaque,uid=1000,username=opaque"
type: cifs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment