2024-01-27 03:21:22 -05:00
|
|
|
# This is for the Slave node, Master node is in the root directory of the same file.
|
|
|
|
services:
|
2024-01-28 02:24:28 -05:00
|
|
|
cache-slave:
|
|
|
|
container_name: redis-cache-slave
|
|
|
|
image: redis/redis-stack-server:7.2.0-v6
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 6379:6379/tcp
|
2024-01-27 03:21:22 -05:00
|
|
|
db-slave:
|
|
|
|
container_name: postgres-slave
|
|
|
|
image: postgres:16.1-alpine3.19
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 5433:5432/tcp
|
|
|
|
volumes:
|
2024-01-28 02:24:28 -05:00
|
|
|
- /var/lib/docker/volumes/daggerbot-db:/var/lib/postgresql/data:rw
|
2024-01-27 03:21:22 -05:00
|
|
|
- ./configs/postgres-hba.conf:/var/lib/postgresql/data/pg_hba.conf:rw
|
|
|
|
- ./configs/postgres.conf:/var/lib/postgresql/data/postgresql.conf:rw
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB}
|