Updates for stack deployment

This commit is contained in:
Patrick Jentsch 2019-12-02 11:06:46 +01:00
parent 6317a479f5
commit da2f7f6c7d
2 changed files with 9 additions and 13 deletions

View File

@ -23,7 +23,7 @@ def create_app(config_name):
db.init_app(app)
login_manager.init_app(app)
mail.init_app(app)
socketio.init_app(app, message_queue='redis://redis:6379')
socketio.init_app(app, message_queue='redis://redis:6379/')
from . import events

View File

@ -6,6 +6,10 @@ services:
placement:
constraints:
- node.role == manager
labels:
- com.docker.lb.hosts=web.opaque
- com.docker.lb.port=8080
- com.docker.lb.sticky_session_cookie=session
env_file:
- db.env
- web.env
@ -13,7 +17,7 @@ services:
ports:
- 5000:5000
volumes:
- storage:/mnt/opaque
- /mnt/opaque:/mnt/opaque
- ./logs:/home/opaque/logs
daemon:
deploy:
@ -25,7 +29,7 @@ services:
- web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
volumes:
- storage:/mnt/opaque
- /mnt/opaque:/mnt/opaque
- ./logs:/home/opaque_daemon/logs
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
db:
@ -34,7 +38,7 @@ services:
constraints:
- node.role == manager
env_file: db.env
image: postgres:11-alpine
image: postgres:11
volumes:
- /srv/opaque/database:/var/lib/postgresql/data
redis:
@ -42,12 +46,4 @@ services:
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
image: redis:5