1
0
mirror of https://github.com/coltoneshaw/CS-Repro-Mattermost.git synced 2025-12-23 18:11:34 +01:00

fixed some replica config settings

This commit is contained in:
coltoneshaw
2024-03-29 18:37:21 -04:00
parent 21fdbf5a37
commit 7e4f5cf5e8
12 changed files with 59 additions and 62 deletions

View File

@@ -5,6 +5,7 @@ services:
- POSTGRES_USER=mmuser
- POSTGRES_PASSWORD=mmuser_password
- LISTEN_ADDRESS="*"
- REPLICA_NAME=replica_1
image: postgres:14-alpine
restart: unless-stopped
ports:
@@ -17,14 +18,9 @@ services:
- /tmp
- /var/run/postgresql
volumes:
- ./files/postgres/replica/replica_1/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./files/postgres/replica/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./volumes/db/replica_1/data:/var/lib/postgresql/data
- ./files/postgres/replica:/files/postgres/replica
healthcheck:
test: pg_isready -U mmuser -d mattermost -h cs-repro-postgres
interval: 10s
timeout: 3s
retries: 3
depends_on:
- mattermost
- postgres
@@ -34,6 +30,7 @@ services:
- POSTGRES_USER=mmuser
- POSTGRES_PASSWORD=mmuser_password
- LISTEN_ADDRESS="*"
- REPLICA_NAME=replica_2
image: postgres:14-alpine
restart: unless-stopped
ports:
@@ -46,14 +43,9 @@ services:
- /tmp
- /var/run/postgresql
volumes:
- ./files/postgres/replica/replica_2/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./files/postgres/replica/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./files/postgres/replica:/files/postgres/replica
- ./volumes/db/replica_2/data:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U mmuser -d mattermost -h cs-repro-postgres
interval: 10s
timeout: 3s
retries: 3
depends_on:
- mattermost
- postgres