-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 969 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 969 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.8'
services:
notify-mongo-1:
image: mongo:4.4.30
container_name: notify-mongo-1
ports:
- target: 27017
published: 27016
protocol: tcp
mode: host
networks:
- notify-net-1
volumes:
- mongo_data:/data/db # Persistent volume for MongoDB
- mongo_config:/data/configdb # Configuration volume
notify-redis-1:
image: redis:6.2.0
container_name: notify-redis-1
ports:
- "6379:6379"
networks:
- notify-net-1
notify-node-1:
build: ./
container_name: notify-node-1
ports:
- "8080:8080"
restart: on-failure
environment:
- MONGODB_URI=mongodb://notify-mongo-1
- NODE_ENV=development
env_file: ".env"
depends_on:
- notify-mongo-1
- notify-redis-1
volumes:
- .:/cens
- /cens/node_modules
networks:
- notify-net-1
volumes:
mongo_data:
mongo_config:
networks:
notify-net-1:
driver: bridge