-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
56 lines (53 loc) · 1.36 KB
/
docker-compose.yaml
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
services:
postgres:
image: postgres:13
restart: on-failure
environment:
- POSTGRES_USER=${GOHUNT_DB_USERNAME:-gohunt}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=gohunt
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${GOHUNT_DB_USERNAME:-gohunt}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- db-data:/var/lib/postgresql/data
gohunt:
depends_on:
- postgres
restart: on-failure
image: ghcr.io/nhas/gohunt:main
environment:
- GOHUNT_USERNAME=${GOHUNT_USERNAME}
- GOHUNT_PASSWORD=${GOHUNT_PASSWORD}
# Settings that can be configured either from the docker env, or config file
- Domain=${DOMAIN}
- ListenAddress=:8081
- NumberProxies=1
- Features_Signup_Enabled=true
- Notification_Webhooks_Enabled=true
- Database_Host=postgres
- Database_Port=5432
- Database_User=${GOHUNT_DB_USERNAME:-gohunt}
- Database_DBname=gohunt
- Database_SSLmode=disable
- Database_Password=${DB_PASSWORD}
caddy:
depends_on:
- gohunt
restart: on-failure
image: caddy:2
ports:
- 80:80
- 443:443
environment:
- DOMAIN=${DOMAIN}
volumes:
- caddy-data:/data
- caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile
volumes:
db-data:
caddy-data:
caddy_config: