mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 02:24:20 +00:00
Updates for stack deployment
This commit is contained in:
parent
6317a479f5
commit
da2f7f6c7d
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user