2020-05-28 11:40:41 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
client:
|
|
|
|
image: os3-client-dev
|
|
|
|
build:
|
2021-01-20 09:10:23 +01:00
|
|
|
context: ../client
|
|
|
|
dockerfile: docker/Dockerfile.dev
|
2020-05-28 11:40:41 +02:00
|
|
|
volumes:
|
2021-01-20 09:10:23 +01:00
|
|
|
- ../client:/app
|
2020-05-28 11:40:41 +02:00
|
|
|
|
|
|
|
server:
|
|
|
|
image: os3-server-dev
|
|
|
|
user: $UID:$GID
|
|
|
|
build:
|
2021-01-20 09:10:23 +01:00
|
|
|
context: ../server
|
|
|
|
dockerfile: docker/Dockerfile.dev
|
2020-05-28 11:40:41 +02:00
|
|
|
volumes:
|
2021-01-20 09:10:23 +01:00
|
|
|
- ../server:/app
|
2020-05-28 11:40:41 +02:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
2021-01-20 09:10:23 +01:00
|
|
|
postgres:
|
|
|
|
image: postgres:11
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=openslides
|
|
|
|
- POSTGRES_PASSWORD=openslides
|
|
|
|
- POSTGRES_DB=openslides
|
|
|
|
volumes:
|
|
|
|
- ./postgresql.dev.conf:/etc/postgresql/postgresql.conf
|
|
|
|
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
|
|
|
|
|
2020-05-28 11:40:41 +02:00
|
|
|
autoupdate:
|
|
|
|
image: os3-autoupdate-dev
|
|
|
|
environment:
|
|
|
|
- MESSAGE_BUS_HOST=redis
|
|
|
|
- MESSAGE_BUS_PORT=6379
|
|
|
|
- WORKER_HOST=server
|
|
|
|
- WORKER_PORT=8000
|
|
|
|
depends_on:
|
|
|
|
- server
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
- ../autoupdate/cmd:/root/cmd
|
|
|
|
- ../autoupdate/internal:/root/internal
|
|
|
|
redis:
|
|
|
|
image: redis:latest
|
|
|
|
|
|
|
|
haproxy:
|
|
|
|
image: os3-haproxy-dev
|
|
|
|
volumes:
|
|
|
|
- ../haproxy/src:/usr/local/etc/haproxy
|
|
|
|
depends_on:
|
|
|
|
- client
|
|
|
|
- server
|
|
|
|
- autoupdate
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|