-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
57 lines (53 loc) · 1 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
version: '3.8'
services:
postgres:
image: postgres:14.7
container_name: postgres
restart: always
networks:
- cmnw-network
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:6-alpine
restart: always
container_name: redis
volumes:
- redis:/data:rw,z
expose:
- 6379
ports:
- '6379:6379'
networks:
- cmnw-network
keys:
build: ./
image: cmnw
container_name: keys
restart: always
links:
- postgres
- redis
command: [ 'node', 'dist/apps/keys/main.js' ]
environment:
- NODE_ENV=${NODE_ENV}
depends_on:
- postgres
- redis
networks:
- cmnw-network
# Docker Networks
networks:
# All container connect in a network
cmnw-network:
driver: bridge
volumes:
postgres:
mongo:
redis: