-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
executable file
·67 lines (58 loc) · 1.48 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.8"
services:
#====================================================
# Client
#====================================================
client:
build:
context: ./Client
networks:
- frontend
ports:
- "3000:3000"
depends_on:
- server
volumes:
- ./Client:/app
#====================================================
# Server
#====================================================
server:
build:
context: ./Server
container_name: server
networks:
- backend
- frontend
ports:
- "4000:4000"
depends_on:
- mongo
environment:
- NODE_ENV2=${ENVIRONMENT}
env_file:
- ./Server/.env
volumes:
- ./Server:/app
#====================================================
# MongoDB
#====================================================
mongo:
container_name: mongodb
image: mongo:latest
restart: always
ports:
- 27017:27017
networks:
- backend
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: root-db
volumes:
- ./Mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ~/Desktop/roboworld/Mongo:/data/db
# ===========================================================================================================================
networks:
backend:
frontend: