forked from foyzulkarim/botsapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (55 loc) · 1.06 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
version: '3.8'
services:
mongo:
image: mongo
container_name: mongo
ports:
- 27017:27017
networks:
- mydockernet
volumes:
- 'app_mongo:/data/db'
appserver:
image: appserver:123
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
depends_on:
- mongo
appclient:
image: appclient:123
container_name: appclient
build:
context: ./client-pro
args:
REACT_APP_API_URL: http://{API_SERVER_IP}: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