updated with secrets
This commit is contained in:
@@ -1,27 +1,24 @@
|
|||||||
services:
|
services:
|
||||||
postgresSQL:
|
postgres:
|
||||||
image: postgres:17-alpine
|
image: postgres:17-alpine
|
||||||
|
secrets:
|
||||||
|
- postgres-master
|
||||||
networks:
|
networks:
|
||||||
- homelab
|
- homelab
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=admin
|
- POSTGRES_USER=admin
|
||||||
- POSTGRES_PASSWORD=AllOfTheStars+1
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-master
|
||||||
- PGDATA=/var/lib/postgresql/data
|
- PGDATA=/var/lib/postgresql/data
|
||||||
volumes:
|
volumes:
|
||||||
- /home/doc/projects/unraid-appdata/postgres:/var/lib/postgresql/data
|
- /home/doc/projects/unraid-appdata/postgres:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- target: 5432
|
- 5432:5432
|
||||||
published: 5434
|
|
||||||
mode: host
|
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD-SHELL", "pg_isready -U admin -d postgres" ]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
start_period: 40s
|
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
homelab:
|
homelab:
|
||||||
external: true
|
external: true
|
||||||
|
secrets:
|
||||||
|
postgres-master:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user