-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (73 loc) · 2.02 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
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
version: '3.8'
services:
cra:
build:
context: ./cra
target: dev
volumes:
- ./cra:/src
ports:
- "${REACT_PORT:-5000}:3000"
environment:
REACT_APP_APP_NAME: ${APP_NAME}
REACT_APP_API_BASE_URL: http://127.0.0.1:${NODE_PORT}/api
REACT_APP_FIREBASE_APIKEY: ${REACT_APP_FIREBASE_APIKEY}
REACT_APP_FIREBASE_AUTHDOMAIN: ${REACT_APP_FIREBASE_AUTHDOMAIN}
REACT_APP_FIREBASE_DATABASEURL: ${REACT_APP_FIREBASE_DATABASEURL}
REACT_APP_FIREBASE_PROJECTID: ${REACT_APP_FIREBASE_PROJECTID}
REACT_APP_FIREBASE_STORAGEBUCKET: ${REACT_APP_FIREBASE_STORAGEBUCKET}
REACT_APP_MESSAGINGSENDERID: ${REACT_APP_MESSAGINGSENDERID}
REACT_APP_FIREBASE_APPID: ${REACT_APP_FIREBASE_APPID}
REACT_APP_MEASUREMENTID: ${REACT_APP_MEASUREMENTID}
networks:
- exercise-app-network
# next:
# build:
# context: ./next
# target: dev
# volumes:
# - ./next:/src
# ports:
# - "${NEXT_PORT:-3000}:3000"
# environment:
# REACT_APP_APP_NAME: ${APP_NAME}
# networks:
# - exercise-app-network
express:
build:
context: ./express
target: dev
volumes:
- ./express:/src
ports:
- "${NODE_PORT:-8000}:8000"
environment:
NODE_ENV: development
DEBUG: nodejs-docker-express:*
PORT: ${NODE_PORT}
MONGO_USERNAME: ${MONGO_USERNAME}
MONGO_PASSWORD: ${MONGO_PASSWORD}
MONGO_DB: ${MONGO_DB}
ATLAS_URI: ${ATLAS_URI}
MONGO_HOST: mongo
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
networks:
- exercise-app-network
depends_on:
- mongo
mongo:
image: mongo:4.1.8-xenial
ports:
- "${MONGO_PORT:-27018}:27017"
networks:
- exercise-app-network
volumes:
- ./mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DB}
networks:
exercise-app-network:
external: true
driver: bridge