-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (42 loc) · 950 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
mongodb:
image: "mongo"
container_name: mongodb
volumes:
- ./data:/data/db
ports:
- "27017:27017"
server:
build: ./server
container_name: server
ports:
- "5000:5000"
environment:
- LINKEDIN_CLIENT_ID=${LINKEDIN_CLIENT_ID}
- LINKEDIN_CLIENT_SECRET=${LINKEDIN_CLIENT_SECRET}
- JWT_SECRET=${JWT_SECRET}
- RESTREVIEWS_DB_URI=${RESTREVIEWS_DB_URI}
- RESTREVIEWS_NS=${RESTREVIEWS_NS}
- PORT=5000
volumes:
- ./server:/app
depends_on:
- mongodb
env_file:
- ./server/.env
command: ["node", "index.js"]
client:
build: ./client
container_name: client
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=${REACT_APP_API_URL}
- LINKEDIN_CLIENT_ID=${LINKEDIN_CLIENT_ID}
stdin_open: true
tty: true
depends_on:
- server
env_file:
- ./client/.env