mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Make compose file swarm ready.
This commit is contained in:
parent
a8395740b8
commit
50a31967f2
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
db.env
|
db.env
|
||||||
web.env
|
web.env
|
||||||
|
__pycache__
|
||||||
|
@ -5,13 +5,16 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
env_file:
|
env_file:
|
||||||
- db.env
|
- db.env
|
||||||
- web.env
|
- web.env
|
||||||
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- /opaque_storage:/opaque_storage
|
- /opaque_storage:/opaque_storage
|
||||||
- ./app:/home/opaque/app
|
- ./app:/home/opaque/app
|
||||||
@ -21,17 +24,26 @@ services:
|
|||||||
daemon:
|
daemon:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
env_file: db.env
|
env_file: db.env
|
||||||
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
||||||
db:
|
db:
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
env_file: db.env
|
env_file: db.env
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- /opaque_database:/var/lib/postgresql/data
|
- /opaque_database:/var/lib/postgresql/data
|
||||||
redis:
|
redis:
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
restart: always
|
|
||||||
|
Loading…
Reference in New Issue
Block a user