-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.17 KB
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
services:
haproxy:
image: haproxy:3.3.4-alpine3.23
ports:
- "443:443"
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
- ./haproxy/ipv4_domain.lst:/usr/local/etc/haproxy/ipv4_domain.lst:ro
- ${CERT_PATH:-./haproxy/certs}:/etc/haproxy/certs:ro
- ${IPV4_CERT_PATH:-./haproxy/certs-ipv4}:/etc/haproxy/certs-ipv4:ro
depends_on:
app:
condition: service_healthy
restart: unless-stopped
networks:
- internal
app:
build: .
environment:
- LISTEN_ADDR=0.0.0.0:3000
- DB_PATH=/data/Merged-IP.mmdb
- DB_UPDATE_URL=${DB_UPDATE_URL:-https://github.com/NetworkCats/Merged-IP-Data/releases/latest/download/Merged-IP.mmdb}
- DB_UPDATE_TIME_UTC=${DB_UPDATE_TIME_UTC:-01:20}
- SITE_DOMAIN=${SITE_DOMAIN:-localhost}
- IPV4_DOMAIN=${IPV4_DOMAIN:-}
volumes:
- db_data:/data
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
restart: unless-stopped
networks:
- internal
volumes:
db_data:
networks:
internal:
driver: bridge