OpenSlides/docker-compose.yml

72 lines
1.1 KiB
YAML
Raw Normal View History

2020-07-14 10:45:27 +02:00
version: "3"
services:
2020-07-14 10:45:27 +02:00
# DATASTORE SECTION
datastore-reader:
depends_on:
2020-07-29 08:54:11 +02:00
- postgres
2020-07-14 10:45:27 +02:00
env_file: services.env
environment:
- NUM_WORKERS=8
datastore-writer:
depends_on:
2020-07-29 08:54:11 +02:00
- postgres
2020-07-14 10:45:27 +02:00
- message-bus
env_file: services.env
2020-07-14 10:45:27 +02:00
# CLIENT
client:
depends_on:
- backend
- autoupdate
2020-07-14 10:45:27 +02:00
# BACKEND
backend:
depends_on:
- datastore-reader
- datastore-writer
env_file: services.env
2020-07-14 10:45:27 +02:00
# AUTOUPDATE
autoupdate:
depends_on:
- datastore-reader
- message-bus
env_file: services.env
2020-07-14 10:45:27 +02:00
# AUTH
auth:
depends_on:
- datastore-reader
- cache
env_file: services.env
cache:
2020-07-23 12:16:35 +02:00
image: redis:latest
2020-07-14 10:45:27 +02:00
2020-07-29 08:54:11 +02:00
# MEDIA
media:
depends_on:
- backend
- postgres
env_file: services.env
# PERSISTENCE
postgres:
image: postgres:11
environment:
- POSTGRES_USER=openslides
- POSTGRES_PASSWORD=openslides
- POSTGRES_DB=openslides
2020-07-14 10:45:27 +02:00
# SHARED
message-bus:
2020-07-23 12:16:35 +02:00
image: redis:latest
2020-07-14 10:45:27 +02:00
# UPLINK
haproxy:
depends_on:
- client
- backend
- autoupdate
ports:
- "8000:8000"