-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack-compose.yml
52 lines (48 loc) · 1.28 KB
/
stack-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
api:
image: ghcr.io/finxol/karr-api:latest
secrets:
- db-password
environment:
- LOG_LEVEL=debug
- DB_HOST=db
- DB_PASSWORD_FILE=/run/secrets/db-password
ports:
- 1993:1993
depends_on:
- db
db:
image: postgres:17-alpine
ports:
- 5432:5432
secrets:
- db-password
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_USER=postgres
- POSTGRES_DB=karr
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
caddy:
image: ghcr.io/finxol/karr-server:latest
ports:
- "80:80"
- "443:443"
- "443:443/udp"
environment:
- TZ=Europe/Paris
- SITE_ADDRESS=karr.finxol.io
- API_PORT=1993
#- CADDY_DISABLE_TLS=1
volumes:
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
secrets:
db-password: # needs a secret created with `printf "<password>" | docker secret create db-password -`
external: true