-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
106 lines (100 loc) · 2.86 KB
/
docker-compose.yml
File metadata and controls
106 lines (100 loc) · 2.86 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
volumes:
caddy_data: {}
caddy_config: {}
networks:
# This network is used to limit network access of the `chromium` service
# to just the `backend` and `frontend` services, disabling internet access.
chromium:
driver: bridge
internal: true
services:
frontend:
image: "ghcr.io/howtheyvote/howtheyvote-frontend:main"
depends_on:
- backend
networks:
- "default"
- "chromium"
expose:
- "8000"
restart: "unless-stopped"
environment:
HTV_FRONTEND_PUBLIC_URL: "${HTV_FRONTEND_PUBLIC_URL}"
HTV_BACKEND_PRIVATE_URL: "http://backend:5000"
HTV_BACKEND_PUBLIC_URL: "${HTV_BACKEND_PUBLIC_URL}"
backend:
image: "ghcr.io/howtheyvote/howtheyvote-backend:main"
depends_on:
- chromium
networks:
- "default"
- "chromium"
ports:
# Make Prometheus metrics available on host machine
- "5000:5000"
volumes:
- "./storage/database:/howtheyvote/database"
- "./storage/files:/howtheyvote/files"
- "./storage/index:/howtheyvote/index"
restart: "unless-stopped"
environment:
HTV_BACKEND_PUBLIC_URL: "${HTV_BACKEND_PUBLIC_URL}"
HTV_FRONTEND_PUBLIC_URL: "${HTV_FRONTEND_PUBLIC_URL}"
HTV_CADDY_PRIVATE_URL: "http://caddy:80"
PUSHOVER_API_TOKEN: "${PUSHOVER_API_TOKEN}"
PUSHOVER_USER_KEY: "${PUSHOVER_USER_KEY}"
SENTRY_DSN: "${SENTRY_DSN}"
SENTRY_ENVIRONMENT: "${SENTRY_ENVIRONMENT}"
worker:
image: "ghcr.io/howtheyvote/howtheyvote-backend:main"
command: "htv worker"
depends_on:
- chromium
networks:
- "default"
- "chromium"
ports:
# Make Prometheus metrics available on host machine
- "3000:3000"
volumes:
- "./storage/database:/howtheyvote/database"
- "./storage/files:/howtheyvote/files"
- "./storage/index:/howtheyvote/index"
restart: "unless-stopped"
environment:
HTV_BACKEND_PUBLIC_URL: "${HTV_BACKEND_PUBLIC_URL}"
HTV_FRONTEND_PUBLIC_URL: "${HTV_FRONTEND_PUBLIC_URL}"
HTV_CADDY_PRIVATE_URL: "http://caddy:80"
PUSHOVER_API_TOKEN: "${PUSHOVER_API_TOKEN}"
PUSHOVER_USER_KEY: "${PUSHOVER_USER_KEY}"
SENTRY_DSN: "${SENTRY_DSN}"
SENTRY_ENVIRONMENT: "${SENTRY_ENVIRONMENT}"
caddy:
image: "caddy:2.10.2-alpine"
volumes:
- "caddy_data:/data"
- "caddy_config:/config"
- "./caddy:/etc/caddy"
- "./storage/files:/howtheyvote/files"
depends_on:
- backend
- frontend
networks:
- "default"
- "chromium"
ports:
- "80:80"
- "443:443"
restart: "unless-stopped"
environment:
CADDY_SITE_ADDRESS: "${CADDY_SITE_ADDRESS}"
chromium:
image: "chromedp/headless-shell:145.0.7632.26"
command:
- "--disable-gpu"
- "--remote-allow-origins=*"
- "--hide-scrollbars"
networks:
- "chromium"
expose:
- "9222"