-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-stack.yml
69 lines (63 loc) · 1.69 KB
/
compose-stack.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
web:
image: ghcr.io/finxol/karr-web:latest
networks:
- karr_network
environment:
- LOG_LEVEL=debug
volumes:
- /srv/http/karr/karr.config.yaml:/app/config/karr.config.yaml
depends_on:
- api
api:
image: ghcr.io/finxol/karr-api:latest
networks:
- karr_network
secrets:
- db-password
environment:
- DB_USER=karr
- DB_HOST=db
- DB_PASSWORD_FILE=/run/secrets/db-password
volumes:
- /srv/http/karr/karr.config.yaml:/app/config/karr.config.yaml
depends_on:
- db
db:
image: postgres:17-alpine
networks:
- karr_network
secrets:
- db-password
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_USER=karr
- POSTGRES_DB=karr
healthcheck:
test: ["CMD-SHELL", "pg_isready -U karr"]
interval: 5s
timeout: 5s
retries: 5
caddy:
image: ghcr.io/finxol/karr-caddy:latest
networks:
- karr_network
ports:
- "80:80"
- "443:443"
- "443:443/udp"
environment:
- SITE_ADDRESS=karr.finxol.io
- API_PORT=1993
- WEB_PORT=3000
volumes:
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
networks:
karr_network:
secrets:
db-password: # needs a secret created with `printf "<password>" | docker secret create db-password -`
external: true