a1e65e8a47
HAProxy was replaced by Caddy, so obviously variables should not longer carry HAPROXY in their names to avoid confusion. To hopefully make future changes less likely to break configurations, we'll keep variable and image names generic (proxy instead of caddy).
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
version: "3"
|
|
services:
|
|
client:
|
|
image: os3-client-dev
|
|
build:
|
|
context: ../client
|
|
dockerfile: docker/Dockerfile.dev
|
|
volumes:
|
|
- ../client/src:/app/src
|
|
|
|
server:
|
|
image: os3-server-dev
|
|
user: $UID:$GID
|
|
build:
|
|
context: ../server
|
|
dockerfile: docker/Dockerfile.dev
|
|
volumes:
|
|
- ../server:/app
|
|
depends_on:
|
|
- redis
|
|
|
|
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'
|
|
|
|
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
|
|
|
|
proxy:
|
|
image: caddy:2.3.0-alpine
|
|
volumes:
|
|
- ../caddy/Caddyfile.dev:/etc/caddy/Caddyfile
|
|
depends_on:
|
|
- client
|
|
- server
|
|
- autoupdate
|
|
ports:
|
|
- "8000:8000"
|