-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.staging.yml
84 lines (81 loc) · 2.72 KB
/
docker-compose.staging.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
version: '3.9'
services:
server:
build:
context: ./server
dockerfile: Dockerfile.staging
args:
- NODE_ENV=production
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- FIREBASE_ADMIN_TYPE=${FIREBASE_ADMIN_TYPE}
- FIREBASE_ADMIN_PROJECT_ID=${FIREBASE_ADMIN_PROJECT_ID}
- FIREBASE_ADMIN_PRIVATE_KEY_ID=${FIREBASE_ADMIN_PRIVATE_KEY_ID}
- FIREBASE_ADMIN_PRIVATE_KEY=${FIREBASE_ADMIN_PRIVATE_KEY}
- FIREBASE_ADMIN_CLIENT_EMAIL=${FIREBASE_ADMIN_CLIENT_EMAIL}
- FIREBASE_ADMIN_CLIENT_ID=${FIREBASE_ADMIN_CLIENT_ID}
- FIREBASE_ADMIN_AUTH_URI=${FIREBASE_ADMIN_AUTH_URI}
- FIREBASE_ADMIN_TOKEN_URI=${FIREBASE_ADMIN_TOKEN_URI}
- FIREBASE_ADMIN_AUTH_PROVIDER_X509_CERT_URL=${FIREBASE_ADMIN_AUTH_PROVIDER_X509_CERT_URL}
- FIREBASE_ADMIN_CLIENT_X509_CERT_URL=${FIREBASE_ADMIN_CLIENT_X509_CERT_URL}
image: askrs-archives-server:staging
container_name: askrs-archives-server
command: npm run start
ports:
- "8080:8080"
environment:
- NODE_ENV=production
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- FIREBASE_ADMIN_TYPE=${FIREBASE_ADMIN_TYPE}
- FIREBASE_ADMIN_PROJECT_ID=${FIREBASE_ADMIN_PROJECT_ID}
- FIREBASE_ADMIN_PRIVATE_KEY_ID=${FIREBASE_ADMIN_PRIVATE_KEY_ID}
- FIREBASE_ADMIN_PRIVATE_KEY=${FIREBASE_ADMIN_PRIVATE_KEY}
- FIREBASE_ADMIN_CLIENT_EMAIL=${FIREBASE_ADMIN_CLIENT_EMAIL}
- FIREBASE_ADMIN_CLIENT_ID=${FIREBASE_ADMIN_CLIENT_ID}
- FIREBASE_ADMIN_AUTH_URI=${FIREBASE_ADMIN_AUTH_URI}
- FIREBASE_ADMIN_TOKEN_URI=${FIREBASE_ADMIN_TOKEN_URI}
- FIREBASE_ADMIN_AUTH_PROVIDER_X509_CERT_URL=${FIREBASE_ADMIN_AUTH_PROVIDER_X509_CERT_URL}
- FIREBASE_ADMIN_CLIENT_X509_CERT_URL=${FIREBASE_ADMIN_CLIENT_X509_CERT_URL}
networks:
- app-network
deploy:
resources:
limits:
cpus: '1'
memory: 4096M
client:
build:
context: ./client
dockerfile: Dockerfile.staging
args:
- REACT_APP_CDN_URL=${REACT_APP_CDN_URL}
- REACT_APP_API_URL=${REACT_APP_API_URL}
image: askrs-archives-client:staging
container_name: askrs-archives-client
command: "serve -s build -l 3000"
depends_on:
- server
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- REACT_APP_CDN_URL=${REACT_APP_CDN_URL}
- REACT_APP_API_URL=${REACT_APP_API_URL}
networks:
- app-network
deploy:
resources:
limits:
cpus: '1'
memory: 4096M
networks:
app-network:
driver: bridge
volumes:
web-root:
driver: local