-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
79 lines (74 loc) · 1.3 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3.7"
services:
# Mongo service
mongodb:
image: mongo:latest
container_name: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PW}
MONGO_INITDB_DATABASE: ${MONGO_DB}
expose:
- 27017
ports:
- "27017:27017"
volumes:
- mongodb:/data/db
networks:
- my_net
# Redis service
redis:
image: "redis:latest"
container_name: redis
restart: unless-stopped
expose:
- 6379
ports:
- "6379:6379"
volumes:
- redis:/data
networks:
- my_net
# Backend service
backend:
depends_on:
- mongodb
- redis
container_name: "backend"
restart: unless-stopped
build:
context: .
dockerfile: dockerfile
expose:
- 80
- 2999
- 3000
- 3001
- 5858
- 3010
- 9230
- 9231
- 9232
ports:
- "80:3001"
- "2999:2999"
- "3000:3000"
- "3001:3001"
- "3010:3010"
- "5858:5858"
- "9230:9230"
- "9231:9231"
- "9232:9232"
environment:
- "NODE_ENV=development_docker"
volumes:
- ./:/home/um/
networks:
- my_net
volumes:
mongodb:
redis:
networks:
my_net:
driver: bridge