OpenSlides/docker-compose.yml

54 lines
1.1 KiB
YAML
Raw Normal View History

version: '3'
services:
# DATASTORE SECTION
2020-05-07 11:59:22 +02:00
datastore-reader:
depends_on:
- datastore-postgresql
env_file: services.env
datastore-writer:
depends_on:
- datastore-postgresql
- message-bus
env_file: services.env
datastore-postgresql:
image: sameersbn/postgresql:10
labels:
org.openslides.role: "postgres"
environment:
- DB_USER=openslides
- DB_PASS=openslides
- DB_NAME=openslides
# CLIENT
client:
depends_on:
- backend
- autoupdate
# BACKEND
backend:
depends_on:
- datastore-reader
- datastore-writer
env_file: services.env
# AUTOUPDATE
autoupdate:
depends_on:
- datastore-reader
- message-bus
env_file: services.env
# SHARED
message-bus:
image: redis:alpine
# UPLINK
haproxy:
depends_on:
- client
- backend
- autoupdate
ports:
- "8000:8000"