unraid to swarm migration

This commit is contained in:
2025-11-11 01:25:04 +00:00
parent 6a9d38f91c
commit e2060a70ec
9 changed files with 432 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
services:
postgresSQL:
image: postgres:17-alpine
networks:
- homelab
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=AllOfTheStars+1
- PGDATA=/var/lib/postgresql/data
volumes:
- /home/doc/projects/unraid-appdata/postgres:/var/lib/postgresql/data
ports:
- target: 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:
replicas: 1
networks:
homelab:
external: true