1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 12:30:58 -04:00
Daggerbot-TS/postgres-replica-stuff/docker-compose.yml

22 lines
733 B
YAML
Raw Normal View History

# 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
db-slave:
container_name: postgres-slave
2024-02-13 01:40:19 -05:00
image: postgres:16.2-alpine3.19
restart: unless-stopped
ports:
2024-01-28 02:27:57 -05:00
- 5432:5432/tcp
volumes:
2024-01-28 02:24:28 -05:00
- /var/lib/docker/volumes/daggerbot-db:/var/lib/postgresql/data:rw
- ./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}