-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 929 Bytes
/
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
services:
mongo:
container_name: frontspace_mongo
image: mongo
ports:
- 27017:27017
nginx:
build:
context: .
container_name: frontspace_nginx
network_mode: host
server:
build:
context: server
network: host
environment:
- DB_ADDR=${DB}
- CLIENT_URL=http://localhost:3000
- JWT_SECRET=${JWT_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
- COOKIE_SECRET=${COOKIE_SECRET}
- SESSION_EXPIRY=${SESSION_EXPIRY}
- REFRESH_TOKEN_EXPIRY=${REFRESH_TOKEN_EXPIRY}
container_name: frontspace_server
ports:
- 4000:4000
client:
build:
context: client
network: host
args:
- REACT_APP_SERVER_URL=http://localhost:4000
- REACT_APP_CLIENT_URL=http://localhost:3000
- REACT_APP_IMGBB_API_KEY=${IMGBB_API_KEY}
container_name: frontspace_client
ports:
- 3000:3000