-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.prod.yml
36 lines (32 loc) · 1.03 KB
/
docker-compose.prod.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
version: "3.3"
services:
# Deployed on Node 3
mongodb:
restart: unless-stopped
volumes:
- /data/fair-enough:/data/db
backend:
restart: unless-stopped
environment:
- FRONTEND_URL=https://fair-enough.semanticscience.org
- MONGODB_URL=mongodb://root:${SECRET_KEY-oursecretkey}@mongodb:27017/
- VIRTUAL_HOST=api.fair-enough.semanticscience.org
- LETSENCRYPT_HOST=api.fair-enough.semanticscience.org
- VIRTUAL_PORT=80
# - API_URL=https://api.fair-enough.semanticscience.org
frontend:
build:
context: ./frontend
args:
# FRONTEND_ENV: dev
ORCID_CLIENT_ID: ${ORCID_CLIENT_ID}
ORCID_CLIENT_SECRET: ${ORCID_CLIENT_SECRET}
OAUTH_REDIRECT_FRONTEND: ${OAUTH_REDIRECT_FRONTEND}
restart: unless-stopped
# ports:
# - 5000:4000
environment:
EXPO_API_URL: https://api.fair-enough.semanticscience.org
VIRTUAL_HOST: fair-enough.semanticscience.org
LETSENCRYPT_HOST: fair-enough.semanticscience.org
VIRTUAL_PORT: 4000