-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
51 lines (47 loc) · 1.12 KB
/
docker-compose.prod.yml
File metadata and controls
51 lines (47 loc) · 1.12 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
45
46
47
48
49
50
51
# Run from a checkout with gitant-daemon and gitant-web as siblings.
# docker compose -f docker-compose.prod.yml up --build
#
# Set GITANT_DOMAIN to your public hostname for Let's Encrypt TLS.
services:
daemon:
build: .
expose:
- "7777"
volumes:
- gitant-data:/home/gitant/.gitant
environment:
GITANT_PORT: "7777"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:7777/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
web:
build: ../gitant-web
expose:
- "3000"
environment:
NEXT_PUBLIC_DAEMON_URL: http://daemon:7777
depends_on:
daemon:
condition: service_healthy
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
environment:
GITANT_DOMAIN: ${GITANT_DOMAIN:-localhost}
ACME_EMAIL: ${ACME_EMAIL:-internal@localhost}
volumes:
- ./deploy/caddy/Caddyfile.docker:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
depends_on:
- web
- daemon
volumes:
gitant-data:
caddy-data:
caddy-config: