Initial commit: PostgreSQL database server

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
primal
2026-02-01 14:43:27 -05:00
commit 48615a3a48
5 changed files with 78 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
services:
postgres:
image: postgres:17-alpine
container_name: infra-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
secrets:
- postgres_password
- news_1440_password
volumes:
- pgdata:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d:ro
networks:
- atproto
# Port exposed for local debugging (using 5433 to avoid conflict with local postgres)
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
secrets:
postgres_password:
file: ./secrets/postgres_password.txt
news_1440_password:
file: ./secrets/news_1440_password.txt
volumes:
pgdata:
networks:
atproto:
name: atproto
driver: bridge