-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (63 loc) · 1.07 KB
/
docker-compose.yaml
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
version: '3.8'
services:
dev-db:
image: postgres:13
ports:
- 5435:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: nest
networks:
- eKartar
- app-tier
dev-cache:
image: bitnami/memcached:latest
ports:
- 11211:11211
networks:
- eKartar
- app-tier
dev-redis:
image: redis:latest
restart: always
ports:
- 6378:6379
volumes:
- cache:/data
prod-db:
image: postgres:13
ports:
- 5436:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: nest
volumes:
- db_data:/var/lib/postgresql/data
networks:
- eKartar
- app-tier
prod-cache:
image: bitnami/memcached:latest
ports:
- 11211:11211
networks:
- eKartar
- app-tier
prod-redis:
image: redis:latest
restart: always
ports:
- 6378:6379
volumes:
- redis:/data
networks:
app-tier:
driver: bridge
eKartar:
volumes:
db_data:
redis:
cache:
driver: local