OpenSlides/docker-compose.prod.yml

101 lines
2.2 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-reader:
build:
context: "https://github.com/OpenSlides/openslides-datastore-service.git"
args:
GIT_CHECKOUT: "${OPENSLIDES_DATASTORE_SERVICE_COMMIT_HASH}"
MODULE: "reader"
PORT: "${OPENSLIDES_DATASTORE_READER_PORT}"
image: openslides-datastore-reader
networks:
- backend
- datastore-reader
2020-07-29 08:54:11 +02:00
- postgres
2020-06-19 08:56:20 +02:00
2020-07-14 10:45:27 +02:00
datastore-writer:
build:
context: "https://github.com/OpenSlides/openslides-datastore-service.git"
args:
GIT_CHECKOUT: "${OPENSLIDES_DATASTORE_SERVICE_COMMIT_HASH}"
MODULE: "writer"
PORT: "${OPENSLIDES_DATASTORE_WRITER_PORT}"
image: openslides-datastore-writer
networks:
- backend
2020-07-29 08:54:11 +02:00
- postgres
2020-07-14 10:45:27 +02:00
- message-bus
2020-06-19 08:56:20 +02:00
2020-07-29 08:54:11 +02:00
postgres:
2020-07-14 10:45:27 +02:00
networks:
2020-07-29 08:54:11 +02:00
- postgres
2020-06-19 08:56:20 +02:00
2020-07-14 10:45:27 +02:00
client:
build:
context: "https://github.com/OpenSlides/openslides-client.git"
args:
GIT_CHECKOUT: "${OPENSLIDES_CLIENT_COMMIT_HASH}"
image: openslides-client
networks:
- frontend
2020-06-19 08:56:20 +02:00
2020-07-14 10:45:27 +02:00
backend:
networks:
- frontend
- backend
2020-06-19 08:56:20 +02:00
2020-07-14 10:45:27 +02:00
autoupdate:
networks:
- frontend
- backend
- message-bus
2020-06-19 08:56:20 +02:00
2020-07-14 10:45:27 +02:00
auth:
build:
context: "https://github.com/OpenSlides/openslides-auth-service.git"
args:
GIT_CHECKOUT: "${OPENSLDIES_AUTH_SERVICE_COMMIT_HASH}"
PORT: "${OPENSLDIES_AUTH_SERVICE_PORT}"
image: openslides-auth
networks:
- datastore-reader
- auth
cache:
networks:
- auth
message-bus:
networks:
- message-bus
2020-06-19 08:56:20 +02:00
2020-07-29 08:54:11 +02:00
media:
# TODO: build
image: openslides-media
networks:
- frontend
- backend
- postgres
2020-07-14 10:45:27 +02:00
haproxy:
build: ./haproxy
image: openslides-haproxy
networks:
- uplink
- frontend
2020-06-19 08:56:20 +02:00
# Setup: host <-uplink-> haproxy <-frontend-> services that are reachable from the client <-backend-> services that are internal-only
2020-07-29 08:54:11 +02:00
# There are special networks for some services only, e.g. postgres only for the postgresql, datastore reader and datastore writer
2020-06-19 08:56:20 +02:00
networks:
2020-07-14 10:45:27 +02:00
uplink:
frontend:
internal: true
backend:
internal: true
2020-07-29 08:54:11 +02:00
postgres:
2020-07-14 10:45:27 +02:00
internal: true
datastore-reader:
internal: true
message-bus:
internal: true
auth:
internal: true