-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
44 lines (37 loc) · 1006 Bytes
/
Copy pathcompose.prod.yml
File metadata and controls
44 lines (37 loc) · 1006 Bytes
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
x-app-build: &app-build
context: .
args:
REACT_APP_API_ORIGIN: ${REACT_APP_API_ORIGIN:-}
REACT_APP_SOCKETIO_ORIGIN: ${REACT_APP_SOCKETIO_ORIGIN:-}
REACT_APP_WCA_ORIGIN: ${REACT_APP_WCA_ORIGIN:-https://www.worldcubeassociation.org}
REACT_APP_WCA_CLIENT_ID: ${REACT_APP_WCA_CLIENT_ID:-}
services:
migrate:
build: *app-build
api:
build: *app-build
restart: unless-stopped
socket:
build: *app-build
restart: unless-stopped
mongo:
restart: unless-stopped
postgres:
restart: unless-stopped
redis:
restart: unless-stopped
nginx:
image: nginx:1.27-alpine
depends_on:
api:
condition: service_healthy
socket:
condition: service_healthy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ${LETSENCRYPT_DIR:-/etc/letsencrypt}:/etc/letsencrypt:ro
- ${CERTBOT_WWW_DIR:-/var/www/certbot}:/var/www/certbot:ro
restart: unless-stopped