-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
62 lines (56 loc) · 1.21 KB
/
docker-compose-dev.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.2"
networks:
indabox:
services:
server:
image: node:11.8-alpine
container_name: indabox-server
command: npm run dev
working_dir: /home/server
depends_on:
- redis
- mongo
networks:
- indabox
ports:
- "3000:3000"
- "9229:9229"
restart: unless-stopped
volumes:
- ./server:/home/server
client:
image: node:11.8-alpine
container_name: indabox-client
command: npm run start
working_dir: /home/client
depends_on:
- server
environment:
REACT_APP_API_URL: http://0.0.0.0:3000
networks:
- indabox
ports:
- "80:3000"
restart: unless-stopped
volumes:
- ./client:/home/client
mongo:
image: mongo:4.1.7
container_name: indabox-mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpw
networks:
- indabox
ports:
- "27017:27017"
restart: unless-stopped
redis:
image: redis:5.0.3
container_name: indabox-redis
command: redis-server --appendonly yes --requirepass rootpw
networks:
- indabox
ports:
- "6379:6379"
restart: unless-stopped