generated from foyzulkarim/mernboilerplate-antd
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.mongocloud.yml
46 lines (46 loc) · 983 Bytes
/
docker-compose.mongocloud.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
version: '3.8'
services:
appserver:
image: appserver:pi
container_name: appserver
build:
context: ./server
dockerfile: Dockerfile
ports:
- 8002:8002
networks:
- mydockernet
environment:
- DEBUG=1
- NODE_ENV=production
- TEST=test123
- DB_HOST=mongo
- DB_PORT=27017
- DB_NAME=mbdb
- JWT_SECRET=1234567890
- JWT_EXPIRES_IN=3600
- PORT=8002
- IS_MONGODB_CLOUD_URL=true
- MONGODB_CLOUD_URL={PUT_YOUR_MONGO_CLOUD_URL_HERE}
appclient:
image: appclient:123
container_name: appclient
build:
context: ./client-pro
args:
REACT_APP_API_URL: http://localhost:8002
REACT_APP_ENV: production
dockerfile: Dockerfile
networks:
- mydockernet
environment:
- REACT_APP_ENV=production
ports:
- 8001:8001
depends_on:
- appserver
networks:
mydockernet:
driver: bridge
volumes:
app_mongo: null