-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 896 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 896 Bytes
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
version: "3"
services:
react-app:
image: react-app
ports:
- "8000:8000"
networks:
- mern-app
environment:
- WATCHPACK_POLLING=true
env_file:
- .env
volumes:
- ./client:/app/client
- /app/client/node_modules
api-server:
image: api-server
ports:
- "3000:3000"
networks:
- mern-app
depends_on:
- mongo
volumes:
- ./server:/app/server
- /app/server/node_modules
mongo:
image: mongo:3.6.19-xenial
ports:
- "27017:27017"
networks:
- mern-app
volumes:
- mongo-data:/data/db
redis:
image: redis/redis-stack
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- mern-app
networks:
mern-app:
driver: bridge
volumes:
mongo-data:
driver: local