-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
187 lines (177 loc) · 4.73 KB
/
docker-compose.yml
File metadata and controls
187 lines (177 loc) · 4.73 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version: "3.9"
services:
portainer:
image: portainer/portainer-ce:lts
container_name: portainer
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
ports:
- "3420:9443"
networks:
- contribution-network
caddy:
image: caddy:2.8-alpine
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile:ro
environment:
- TZ=UTC
depends_on:
- frontend
- backend-hub
networks:
- contribution-network
frontend:
image: ghcr.io/proxzima/contribution-manager-app:latest
restart: unless-stopped
container_name: frontend
environment:
- NODE_ENV=production
- PORT=3000
- HOSTNAME=0.0.0.0
- NEXT_TELEMETRY_DISABLED=1
- GOOGLE_APPLICATION_CREDENTIALS=/app/.secrets/google-credentials.json
volumes:
- ./.secrets/google-credentials.json:/app/.secrets/google-credentials.json:ro
expose:
- "3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- contribution-network
valkey:
image: valkey/valkey:8.0-alpine
container_name: valkey
restart: unless-stopped
command: valkey-server --maxmemory 256mb --maxmemory-policy allkeys-lru --appendonly yes --appendfsync everysec --protected-mode no
ports:
- "6379:6379"
volumes:
- valkey_data:/data
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
networks:
- contribution-network
backend-hub:
image: ghcr.io/proxzima/contribution-hub-api:latest
restart: unless-stopped
container_name: backend-hub
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:5000
- DOTNET_RUNNING_IN_CONTAINER=true
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
- GOOGLE_APPLICATION_CREDENTIALS=/app/.secrets/google-credentials.json
volumes:
- ./.secrets/google-credentials.json:/app/.secrets/google-credentials.json:ro
depends_on:
backend-github:
condition: service_healthy
backend-gitlab:
condition: service_healthy
backend-azuredevops:
condition: service_healthy
expose:
- "5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- contribution-network
backend-github:
image: ghcr.io/proxzima/contribution-github-api:latest
restart: unless-stopped
container_name: backend-github
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:5000
- DOTNET_RUNNING_IN_CONTAINER=true
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
depends_on:
valkey:
condition: service_healthy
expose:
- "5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- contribution-network
backend-gitlab:
image: ghcr.io/proxzima/contribution-gitlab-api:latest
restart: unless-stopped
container_name: backend-gitlab
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:5000
- DOTNET_RUNNING_IN_CONTAINER=true
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
depends_on:
valkey:
condition: service_healthy
expose:
- "5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- contribution-network
backend-azuredevops:
image: ghcr.io/proxzima/contribution-azuredevops-api:latest
restart: unless-stopped
container_name: backend-azuredevops
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:5000
- DOTNET_RUNNING_IN_CONTAINER=true
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
depends_on:
valkey:
condition: service_healthy
expose:
- "5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- contribution-network
volumes:
valkey_data:
driver: local
caddy_data:
driver: local
caddy_config:
driver: local
portainer_data:
driver: local
networks:
contribution-network:
driver: bridge