OpenSlides/docker-compose.yml
2020-05-13 16:29:46 +02:00

58 lines
1.2 KiB
YAML

version: '3'
services:
# DATASTORE SECTION
datastore-reader:
depends_on:
- datastore-postgresql
env_file: services.env
networks:
- datastore-postgresql
datastore-writer:
depends_on:
- datastore-postgresql
- message-bus
env_file: services.env
networks:
- datastore-postgresql
- message-bus
datastore-postgresql:
image: sameersbn/postgresql:10
labels:
org.openslides.role: "postgres"
environment:
- DB_USER=openslides
- DB_PASS=openslides
- DB_NAME=openslides
networks:
- datastore-postgresql
# CLIENT
client:
networks:
- backend
# SHARED
message-bus:
image: redis:alpine
networks:
- message-bus
# UPLINK
haproxy:
depends_on:
- client
ports:
- "8000:8000"
networks:
- uplink
- backend
networks:
uplink:
datastore-postgresql:
internal: true
message-bus:
internal: true
backend:
internal: true