2023-04-15 22:35:09 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
bot:
|
2023-05-15 16:44:14 +02:00
|
|
|
image: git.hhhammer.de/hamburghammer/dchat/bot:latest
|
2023-06-11 20:43:00 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-20 20:22:00 +02:00
|
|
|
build:
|
2023-07-27 00:50:50 +02:00
|
|
|
dockerfile: Dockerfile
|
2023-05-20 20:22:00 +02:00
|
|
|
context: .
|
|
|
|
target: bot
|
2023-04-15 22:35:09 +02:00
|
|
|
restart: unless-stopped
|
2023-12-07 23:32:21 +01:00
|
|
|
networks:
|
|
|
|
- db
|
2023-05-21 22:24:01 +02:00
|
|
|
user: 1000:1000
|
2023-04-15 22:35:09 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2023-05-20 20:22:00 +02:00
|
|
|
- migration
|
2023-05-15 16:44:14 +02:00
|
|
|
|
|
|
|
web:
|
|
|
|
image: git.hhhammer.de/hamburghammer/dchat/web:latest
|
2023-06-11 20:43:00 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-20 20:22:00 +02:00
|
|
|
build:
|
2023-07-27 00:50:50 +02:00
|
|
|
dockerfile: Dockerfile
|
2023-05-20 20:22:00 +02:00
|
|
|
context: .
|
|
|
|
target: web
|
2023-05-15 16:44:14 +02:00
|
|
|
restart: unless-stopped
|
2023-05-21 22:24:01 +02:00
|
|
|
user: 1000:1000
|
2023-05-15 16:44:14 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2023-05-20 20:22:00 +02:00
|
|
|
- migration
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
2023-12-07 23:32:21 +01:00
|
|
|
networks:
|
|
|
|
- db
|
|
|
|
- web
|
2023-05-15 16:44:14 +02:00
|
|
|
|
|
|
|
migration:
|
|
|
|
image: git.hhhammer.de/hamburghammer/dchat/migration:latest
|
2023-06-11 20:43:00 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-20 20:22:00 +02:00
|
|
|
build:
|
2023-07-27 00:50:50 +02:00
|
|
|
dockerfile: Dockerfile
|
2023-05-20 20:22:00 +02:00
|
|
|
context: .
|
|
|
|
target: migration
|
2023-05-21 22:24:01 +02:00
|
|
|
user: 1000:1000
|
2023-05-15 16:44:14 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2023-12-07 23:32:21 +01:00
|
|
|
networks:
|
|
|
|
- db
|
2023-05-15 16:44:14 +02:00
|
|
|
|
2023-11-23 22:05:28 +01:00
|
|
|
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
|
2023-11-23 22:05:28 +01:00
|
|
|
ports:
|
2023-12-08 19:35:59 +01:00
|
|
|
- 8081:80
|
2023-12-07 23:32:21 +01:00
|
|
|
networks:
|
|
|
|
- ui
|
2023-11-23 22:05:28 +01:00
|
|
|
|
|
|
|
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
|
2023-11-23 22:05:28 +01:00
|
|
|
user: 1000:1000
|
|
|
|
depends_on:
|
|
|
|
- ui
|
|
|
|
- web
|
|
|
|
ports:
|
2023-12-08 19:35:59 +01:00
|
|
|
- 8082:8080
|
2023-12-07 23:32:21 +01:00
|
|
|
networks:
|
|
|
|
- ui
|
|
|
|
- web
|
2023-12-07 16:37:28 +01:00
|
|
|
volumes:
|
|
|
|
- caddy_config:/config
|
2023-11-23 22:05:28 +01:00
|
|
|
|
2023-04-15 22:35:09 +02:00
|
|
|
db:
|
|
|
|
image: docker.io/postgres:15-alpine
|
2023-06-11 20:43:00 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-04-15 22:35:09 +02:00
|
|
|
restart: unless-stopped
|
2023-10-31 15:09:32 +01:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:5432:5432
|
2023-12-07 23:32:21 +01:00
|
|
|
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
|
2023-12-07 16:37:28 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
caddy_config:
|
2023-12-07 23:32:21 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
db:
|
|
|
|
ui:
|
|
|
|
web:
|