Author SHA1 Message Date
tim 7be89e70c8 pridanie pgAdmin 2026-07-04 13:45:41 +02:00
tim 7a5202195b docker-compose update external network 2026-07-01 21:04:04 +02:00
2 changed files with 30 additions and 0 deletions
+5
View File
@@ -12,6 +12,11 @@ CORS_ALLOWED_ORIGINS=https://bridzik.liptim.eu
# Shared secret for the self-hosted /api/admin/* stats endpoints.
ADMIN_TOKEN=tajneheslo
# pgAdmin login (UI bound to 127.0.0.1:8081 on the host -- access via SSH tunnel,
# never expose publicly since it has full access to the Postgres data).
PGADMIN_DEFAULT_EMAIL=admin@example.com
PGADMIN_DEFAULT_PASSWORD=zmen_ma
# Fernet key encrypting Player.totp_secret at rest. Generate with:
# python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
# Keep it stable across restarts/redeploys -- losing it locks every account
+25
View File
@@ -15,6 +15,21 @@ services:
volumes:
- pgdata:/var/lib/postgresql
restart: always
networks:
caddy_network:
pgadmin:
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin_data:/var/lib/pgadmin
restart: always
depends_on:
- db
networks:
caddy_network:
backend:
build: .
@@ -29,14 +44,24 @@ services:
restart: always
depends_on:
- db
networks:
caddy_network:
frontend:
container_name: bridzik
build: ./frontend
environment:
BACKEND_UPSTREAM: backend:5000
restart: always
depends_on:
- backend
networks:
caddy_network:
volumes:
pgdata:
pgadmin_data:
networks:
caddy_network:
external: true