mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
docs(deploy): pin pg_isready to POSTGRES_DB and flag the default password (#606)
Add -d snapotter to the guide's Compose healthcheck examples so they match the shipped compose fix (#595), and note "change this" next to the default POSTGRES_PASSWORD. English guide only; locale docs regenerate through the i18n pipeline. Refs #592
This commit is contained in:
@@ -121,13 +121,13 @@ services:
|
|||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: snapotter
|
POSTGRES_USER: snapotter
|
||||||
POSTGRES_PASSWORD: snapotter
|
POSTGRES_PASSWORD: snapotter # Change this for non-local deployments
|
||||||
POSTGRES_DB: snapotter
|
POSTGRES_DB: snapotter
|
||||||
volumes:
|
volumes:
|
||||||
- SnapOtter-pgdata:/var/lib/postgresql/data
|
- SnapOtter-pgdata:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
test: ["CMD-SHELL", "pg_isready -U snapotter -d snapotter"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ services:
|
|||||||
- SnapOtter-pgdata:/var/lib/postgresql/data
|
- SnapOtter-pgdata:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
test: ["CMD-SHELL", "pg_isready -U snapotter -d snapotter"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
@@ -161,13 +161,13 @@ services:
|
|||||||
container_name: SnapOtter-postgres
|
container_name: SnapOtter-postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: snapotter
|
POSTGRES_USER: snapotter
|
||||||
POSTGRES_PASSWORD: snapotter
|
POSTGRES_PASSWORD: snapotter # Change this for non-local deployments
|
||||||
POSTGRES_DB: snapotter
|
POSTGRES_DB: snapotter
|
||||||
volumes:
|
volumes:
|
||||||
- SnapOtter-pgdata:/var/lib/postgresql/data
|
- SnapOtter-pgdata:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
test: ["CMD-SHELL", "pg_isready -U snapotter -d snapotter"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
|
|||||||
@@ -90,13 +90,13 @@ services:
|
|||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: snapotter
|
POSTGRES_USER: snapotter
|
||||||
POSTGRES_PASSWORD: snapotter
|
POSTGRES_PASSWORD: snapotter # Change this for non-local deployments
|
||||||
POSTGRES_DB: snapotter
|
POSTGRES_DB: snapotter
|
||||||
volumes:
|
volumes:
|
||||||
- SnapOtter-pgdata:/var/lib/postgresql/data
|
- SnapOtter-pgdata:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
test: ["CMD-SHELL", "pg_isready -U snapotter -d snapotter"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
|
|||||||
@@ -75,13 +75,13 @@ services:
|
|||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: snapotter
|
POSTGRES_USER: snapotter
|
||||||
POSTGRES_PASSWORD: snapotter
|
POSTGRES_PASSWORD: snapotter # Change this for non-local deployments
|
||||||
POSTGRES_DB: snapotter
|
POSTGRES_DB: snapotter
|
||||||
volumes:
|
volumes:
|
||||||
- SnapOtter-pgdata:/var/lib/postgresql/data
|
- SnapOtter-pgdata:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
test: ["CMD-SHELL", "pg_isready -U snapotter -d snapotter"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ services:
|
|||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=snapotter
|
- POSTGRES_USER=snapotter
|
||||||
- POSTGRES_PASSWORD=snapotter
|
- POSTGRES_PASSWORD=snapotter # Change this for non-local deployments
|
||||||
- POSTGRES_DB=snapotter
|
- POSTGRES_DB=snapotter
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres-data:/var/lib/postgresql/data
|
- ./postgres-data:/var/lib/postgresql/data
|
||||||
|
|||||||
@@ -72,13 +72,13 @@ services:
|
|||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: snapotter
|
POSTGRES_USER: snapotter
|
||||||
POSTGRES_PASSWORD: snapotter
|
POSTGRES_PASSWORD: snapotter # Change this for non-local deployments
|
||||||
POSTGRES_DB: snapotter
|
POSTGRES_DB: snapotter
|
||||||
volumes:
|
volumes:
|
||||||
- SnapOtter-pgdata:/var/lib/postgresql/data
|
- SnapOtter-pgdata:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
test: ["CMD-SHELL", "pg_isready -U snapotter -d snapotter"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
|
|||||||
Reference in New Issue
Block a user