forked from Suor/django-cacheops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 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
version: '2.1'
services:
redis-primary:
image: 'bitnami/redis:5.0'
ports:
- '6379:6379'
environment:
- REDIS_REPLICATION_MODE=master
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'redis_data:/bitnami/redis/data'
redis-secondary:
image: 'bitnami/redis:5.0'
ports:
- '6380:6379'
depends_on:
- redis-primary
environment:
- REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-primary
- REDIS_MASTER_PORT_NUMBER=6379
- ALLOW_EMPTY_PASSWORD=yes
postgres:
container_name: postgres
restart: always
image: giosg/postgres:barmanready-stable
environment:
ADD_DB: "cacheops"
POSTGRES_PASSWORD: "kissanpissa"
ports:
- '5432:5432'
postgres_fictive_slave:
container_name: postgres_fictive_slave
restart: always
image: giosg/postgres:barmanready-stable
environment:
ADD_DB: "cacheops_slave"
POSTGRES_PASSWORD: "kissanpissa"
ports:
- '5433:5432'
volumes:
redis_data:
driver: local