-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (40 loc) · 1.15 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
version: '2'
services:
webserver:
image: nginx
environment:
- NODE_HOST=testable
- NODE_PORT=$TESTABLE_PORT
- NGINX_HOST=localhost
- NGINX_PORT=80
volumes:
- ./docker/nginx/:/nginx
command: /bin/bash -c "envsubst < /nginx/default.conf > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
ports:
- "80:80"
- "443:443"
testable:
environment:
- TESTABLE_PORT=$TESTABLE_PORT
build:
args:
- REACT_APP_FIREBASE_JSON=$REACT_APP_FIREBASE_JSON
- REACT_APP_RANKING_API=$REACT_APP_RANKING_API
- REACT_APP_SURVEY_URL=$REACT_APP_SURVEY_URL
- REACT_APP_SHOW_SURVEY=$REACT_APP_SHOW_SURVEY
- REACT_APP_DEBUG=$REACT_APP_DEBUG
- TESTABLE_PORT=$TESTABLE_PORT
- PUBLIC_URL=$PUBLIC_URL
context: ./webapp
ports:
- $TESTABLE_PORT:$TESTABLE_PORT
ranking:
environment:
- PORT=$RANKING_PORT
- RANKING_FIREBASE_JSON=$RANKING_FIREBASE_JSON
- FIREBASE_DATABASE_URL=$FIREBASE_DATABASE_URL
- CORS_ORIGINS=$CORS_ORIGINS
build:
context: ./ranking-api
ports:
- $RANKING_PORT:$RANKING_PORT