2023-04-15 22:35:09 +02:00
|
|
|
services:
|
2024-02-17 16:22:16 +01:00
|
|
|
monolith:
|
|
|
|
image: git.hhhammer.de/hamburghammer/dchat/monolith: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: .
|
2024-02-17 16:22:16 +01:00
|
|
|
target: monolith
|
2023-04-15 22:35:09 +02:00
|
|
|
restart: unless-stopped
|
2023-12-07 23:32:21 +01:00
|
|
|
networks:
|
|
|
|
- db
|
2024-02-17 16:22:16 +01:00
|
|
|
- web
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
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
|
|
|
|
|
|
|
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
|
2024-02-17 16:22:16 +01:00
|
|
|
- monolith
|
2023-11-23 22:05:28 +01:00
|
|
|
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:
|
2024-06-27 00:40:01 +02:00
|
|
|
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
2023-05-20 20:22:00 +02:00
|
|
|
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:
|