dchat/docker-compose.yml

93 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2023-04-15 22:35:09 +02:00
version: "3"
services:
monolith:
image: git.hhhammer.de/hamburghammer/dchat/monolith:latest
env_file:
- .env
2023-05-20 20:22:00 +02:00
build:
dockerfile: Dockerfile
2023-05-20 20:22:00 +02:00
context: .
target: monolith
2023-04-15 22:35:09 +02:00
restart: unless-stopped
networks:
- db
- web
ports:
- 8080:8080
user: 1000:1000
2023-04-15 22:35:09 +02:00
depends_on:
- db
2023-05-20 20:22:00 +02:00
- migration
migration:
image: git.hhhammer.de/hamburghammer/dchat/migration:latest
env_file:
- .env
2023-05-20 20:22:00 +02:00
build:
dockerfile: Dockerfile
2023-05-20 20:22:00 +02:00
context: .
target: migration
user: 1000:1000
depends_on:
- db
networks:
- db
ui:
image: git.hhhammer.de/hamburghammer/dchat/ui:latest
build:
dockerfile: Dockerfile
context: .
target: ui
2023-12-08 20:17:35 +01:00
restart: unless-stopped
ports:
2023-12-08 19:35:59 +01:00
- 8081:80
networks:
- ui
caddy:
image: git.hhhammer.de/hamburghammer/dchat/caddy:latest
build:
dockerfile: Dockerfile
context: .
target: caddy
2023-12-08 20:17:35 +01:00
restart: unless-stopped
user: 1000:1000
depends_on:
- ui
- monolith
ports:
2023-12-08 19:35:59 +01:00
- 8082:8080
networks:
- ui
- web
volumes:
- caddy_config:/config
2023-04-15 22:35:09 +02:00
db:
image: docker.io/postgres:15-alpine
env_file:
- .env
2023-04-15 22:35:09 +02:00
restart: unless-stopped
ports:
- 127.0.0.1:5432:5432
networks:
- db
2023-04-15 22:35:09 +02:00
volumes:
- ./data/postgres:/var/lib/postgresql/data:rw
2023-05-20 20:22:00 +02:00
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-d", $POSTGRES_DB ]
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
volumes:
caddy_config:
networks:
db:
ui:
web: