Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7be89e70c8 | ||
|
|
7a5202195b |
@@ -12,6 +12,11 @@ CORS_ALLOWED_ORIGINS=https://bridzik.liptim.eu
|
|||||||
# Shared secret for the self-hosted /api/admin/* stats endpoints.
|
# Shared secret for the self-hosted /api/admin/* stats endpoints.
|
||||||
ADMIN_TOKEN=tajneheslo
|
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:
|
# Fernet key encrypting Player.totp_secret at rest. Generate with:
|
||||||
# python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
# python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
||||||
# Keep it stable across restarts/redeploys -- losing it locks every account
|
# Keep it stable across restarts/redeploys -- losing it locks every account
|
||||||
|
|||||||
@@ -15,6 +15,21 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql
|
- pgdata:/var/lib/postgresql
|
||||||
restart: always
|
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:
|
backend:
|
||||||
build: .
|
build: .
|
||||||
@@ -29,14 +44,24 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
networks:
|
||||||
|
caddy_network:
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
|
container_name: bridzik
|
||||||
build: ./frontend
|
build: ./frontend
|
||||||
environment:
|
environment:
|
||||||
BACKEND_UPSTREAM: backend:5000
|
BACKEND_UPSTREAM: backend:5000
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
networks:
|
||||||
|
caddy_network:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
pgadmin_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
caddy_network:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user