-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
106 lines (99 loc) · 2.74 KB
/
docker-compose.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
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:
meilisearch_data: {}
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:
- meilisearch
- chromium
networks:
- "default"
- "chromium"
ports:
# Make Prometheus metrics available on host machine
- "5000:5000"
volumes:
- "./storage/database:/howtheyvote/database"
- "./storage/files:/howtheyvote/files"
restart: "unless-stopped"
environment:
HTV_BACKEND_PUBLIC_URL: "${HTV_BACKEND_PUBLIC_URL}"
HTV_FRONTEND_PUBLIC_URL: "${HTV_FRONTEND_PUBLIC_URL}"
HTV_FRONTEND_PRIVATE_URL: "http://frontend:8000"
MEILI_URL: "http://meilisearch:7700"
MEILI_MASTER_KEY: "${MEILI_MASTER_KEY}"
worker:
image: "ghcr.io/howtheyvote/howtheyvote-backend:main"
command: "htv worker"
depends_on:
- meilisearch
- chromium
ports:
# Make Prometheus metrics available on host machine
- "3000:3000"
volumes:
- "./storage/database:/howtheyvote/database"
- "./storage/files:/howtheyvote/files"
restart: "unless-stopped"
environment:
HTV_BACKEND_PUBLIC_URL: "${HTV_BACKEND_PUBLIC_URL}"
HTV_FRONTEND_PUBLIC_URL: "${HTV_FRONTEND_PUBLIC_URL}"
MEILI_URL: "http://meilisearch:7700"
MEILI_MASTER_KEY: "${MEILI_MASTER_KEY}"
meilisearch:
image: "getmeili/meilisearch:v1.3.1"
expose:
- "7700"
volumes:
- "meilisearch_data:/meili_data"
restart: "unless-stopped"
environment:
MEILI_MASTER_KEY: "${MEILI_MASTER_KEY}"
caddy:
image: "caddy:2.7.6-alpine"
volumes:
- "caddy_data:/data"
- "caddy_config:/config"
- "./caddy:/etc/caddy"
- "./storage/files:/howtheyvote/files"
depends_on:
- backend
- frontend
ports:
- "80:80"
- "443:443"
restart: "unless-stopped"
environment:
CADDY_SITE_ADDRESS: "${CADDY_SITE_ADDRESS}"
chromium:
image: "chromedp/headless-shell:125.0.6368.2"
command:
- "--disable-gpu"
- "--remote-allow-origins=*"
- "--hide-scrollbars"
networks:
- "chromium"
expose:
- "9222"