-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (60 loc) · 1.35 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:
stdin_open: true
build:
context: ./client
dockerfile: Dockerfile
image: lifemaxx_client
container_name: lifemaxx_client_container
volumes:
- ./client/:/usr/src/lifemaxx/client/
- /usr/src/lifemaxx/client/node_modules
ports:
- '3000:3000'
depends_on:
- api
environment:
- CHOKIDAR_USEPOLLING=true
networks:
- lifemaxx_network
# restart: always
api:
build:
context: ./
dockerfile: Dockerfile
image: lifemaxx_server
container_name: lifemaxx_server_container
restart: always
volumes:
- ./:/usr/src/lifemaxx/server/
- /usr/src/lifemaxx/server/node_modules
ports:
- '5000:5000'
depends_on:
- mongo
environment:
- NODE_ENV=development
- MONGO_URL=mongodb://mongo:27017/lifemaxx
- CHOKIDAR_USEPOLLING=true
networks:
- lifemaxx_network
mongo:
image: mongo
restart: always
container_name: lifemaxx_mongo_container
ports:
- '27017:27017'
networks:
- lifemaxx_network
volumes:
- data_mongo:/data/db
networks:
lifemaxx_network:
driver: bridge
volumes:
data_mongo:
node_modules_client:
node_modules_server:
web-root:
driver: local