mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Add Redis slave
This commit is contained in:
parent
ebca16e5a5
commit
6399099ccb
@ -1,5 +1,11 @@
|
|||||||
# This is for the Slave node, Master node is in the root directory of the same file.
|
# This is for the Slave node, Master node is in the root directory of the same file.
|
||||||
services:
|
services:
|
||||||
|
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:
|
db-slave:
|
||||||
container_name: postgres-slave
|
container_name: postgres-slave
|
||||||
image: postgres:16.1-alpine3.19
|
image: postgres:16.1-alpine3.19
|
||||||
@ -7,7 +13,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5433:5432/tcp
|
- 5433:5432/tcp
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/docker/volumes/daggerbot-db-slave:/var/lib/postgresql/data:rw
|
- /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-hba.conf:/var/lib/postgresql/data/pg_hba.conf:rw
|
||||||
- ./configs/postgres.conf:/var/lib/postgresql/data/postgresql.conf:rw
|
- ./configs/postgres.conf:/var/lib/postgresql/data/postgresql.conf:rw
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user