-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 1.45 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
56
57
58
59
60
61
62
version: '3.7'
services:
client:
image: nonovium/cloudify:1.0.1
build:
context: ./client
dockerfile: Dockerfile
ports:
- 3000:3000
networks:
- mern-network
volumes:
- ./client/src:/usr/app/src
- ./client/public:/usr/app/public
depends_on:
- server
- mongodb_container
environment:
- REACT_APP_SERVER=http://localhost:4000
- REACT_APP_PROD_URL=http://localhost:4000
- CHOKIDAR_USEPOLLING=true
command: npm start
stdin_open: true
tty: true
server:
image: nonovium/cloudify:1.0.1
build:
context: ./server
dockerfile: Dockerfile
ports:
- 4000:4000
networks:
- mern-network
volumes:
- ./server:/usr/app
depends_on:
- mongodb_container
environment:
# - DB_URI=mongodb://root:rootpassword@mongodb_container:27017/musicdb
- CLIENT=http://localhost:3000
- PORT=4000
- SECRET=YouShouldReallyChangeThisToSomethingSecureIAmSureThisIsntSecureSoChangeItNowRightNow!
#command: /usr/app/node_modules/.bin/nodemon -L /server.js
mongodb_container:
image: mongo:5.0.10
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- 27017:27017
networks:
- mern-network
volumes:
- ./mongodb/mongodb_data_container:/data/musicdb
networks:
mern-network:
driver: bridge
volumes:
mongodb_data_container: