OpenSlides/docker/docker-compose.dev.yml

106 lines
2.8 KiB
YAML
Raw Normal View History

2020-10-05 10:43:43 +02:00
version: "3"
services:
datastore-reader:
image: openslides-datastore-reader-dev
depends_on:
- postgres
env_file: services.env
environment:
- DATASTORE_ENABLE_DEV_ENVIRONMENT=1
2020-10-05 10:43:43 +02:00
- NUM_WORKERS=8
volumes:
- ../openslides-datastore-service/shared/shared:/app/shared
- ../openslides-datastore-service/reader/reader:/app/reader
2020-11-03 11:33:23 +01:00
ports:
- 9010:9010
2020-10-05 10:43:43 +02:00
datastore-writer:
image: openslides-datastore-writer-dev
depends_on:
- postgres
- message-bus
env_file: services.env
volumes:
- ../openslides-datastore-service/shared/shared:/app/shared
- ../openslides-datastore-service/writer/writer:/app/writer
- ../openslides-datastore-service/cli:/app/cli
environment:
- DATASTORE_ENABLE_DEV_ENVIRONMENT=1
- COMMAND=create_initial_data
- DATASTORE_INITIAL_DATA_FILE=https://raw.githubusercontent.com/OpenSlides/OpenSlides/openslides4-dev/docs/example-data.json
2020-11-03 11:33:23 +01:00
ports:
- 9011:9011
2020-10-05 10:43:43 +02:00
postgres:
image: postgres:11
environment:
- POSTGRES_USER=openslides
- POSTGRES_PASSWORD=openslides
- POSTGRES_DB=openslides
client:
image: openslides-client-dev
depends_on:
- backend
- autoupdate
env_file: services.env
volumes:
- ../openslides-client/client/src:/app/src
backend:
image: openslides-backend-dev
depends_on:
- datastore-reader
- datastore-writer
2020-07-30 08:57:57 +02:00
- auth
- permission
2020-10-05 10:43:43 +02:00
env_file: services.env
volumes:
2020-10-28 13:11:26 +01:00
- ../openslides-backend/openslides_backend:/app/openslides_backend
2020-10-05 10:43:43 +02:00
autoupdate:
image: openslides-autoupdate-dev
depends_on:
- datastore-reader
- message-bus
2020-11-03 11:33:23 +01:00
environment:
- AUTH=fake
2020-10-05 10:43:43 +02:00
env_file: services.env
volumes:
- ../openslides-autoupdate-service/cmd:/root/cmd
- ../openslides-autoupdate-service/internal:/root/internal
2020-07-30 08:57:57 +02:00
permission:
image: openslides-permission-dev
depends_on:
- datastore-reader
env_file: services.env
volumes:
- ../openslides-permission-service/cmd:/app/cmd
- ../openslides-permission-service/internal:/app/internal
- ../openslides-permission-service/pkg:/app/pkg
2020-10-05 10:43:43 +02:00
auth:
image: openslides-auth-dev
depends_on:
- datastore-reader
- cache
env_file: services.env
volumes:
- ../openslides-auth-service/auth/src:/app/src
cache:
image: redis:latest
media:
image: openslides-media-dev
depends_on:
- backend
- postgres
env_file: services.env
volumes:
- ../openslides-media-service/src:/app/src
message-bus:
image: redis:latest
haproxy:
image: openslides-haproxy-dev
depends_on:
- client
- backend
- autoupdate
ports:
- "8000:8000"
volumes:
- ../haproxy/src:/usr/local/etc/haproxy