dchat/docker-compose.yml

109 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2023-04-15 22:35:09 +02:00
version: "3"
services:
bot:
image: git.hhhammer.de/hamburghammer/dchat/bot: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: bot
2023-04-15 22:35:09 +02:00
restart: unless-stopped
networks:
- db
user: 1000:1000
2023-04-15 22:35:09 +02:00
depends_on:
- db
2023-05-20 20:22:00 +02:00
- migration
web:
image: git.hhhammer.de/hamburghammer/dchat/web: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: web
restart: unless-stopped
user: 1000:1000
depends_on:
- db
2023-05-20 20:22:00 +02:00
- migration
ports:
- 8080:8080
networks:
- db
- web
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
- web
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: