-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.02 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
version: "3"
services:
puzl-web:
build:
context: ./puzl-web
dockerfile: Dockerfile
networks:
- backend
env_file: .env
ports:
- "3000:3000"
volumes:
- ./puzl-web:/home/node/puzl-web
- puzl-web-node_modules:/home/node/puzl-web/node_modules
stdin_open: true
puzl-server:
depends_on:
- redis
- mongodb
build:
context: ./puzl-server
dockerfile: Dockerfile
networks:
- backend
env_file: .env
ports:
- "8080:8080"
volumes:
- ./puzl-server:/home/node/puzl-server
- puzl-server-node_modules:/home/node/puzl-server/node_modules
redis:
image: "redis:6-alpine"
networks:
- backend
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
mongodb:
image: mongo
networks:
- backend
ports:
- "27017:27017"
volumes:
puzl-server-node_modules:
driver: local
puzl-web-node_modules:
driver: local
networks:
backend:
driver: bridge