Remove DATABASE_URL and PostgreSQL service from compose.yaml for simplification
This commit is contained in:
@@ -11,7 +11,6 @@ services:
|
|||||||
- PUID=${PUID:-1000}
|
- PUID=${PUID:-1000}
|
||||||
- PGID=${PGID:-1000}
|
- PGID=${PGID:-1000}
|
||||||
- TZ=America/Toronto # Your timezone
|
- TZ=America/Toronto # Your timezone
|
||||||
- DATABASE_URL=postgresql+asyncpg://${PG_USER:-bambuddy}:${PG_PASS:?database password required}@postgres:5432/bambuddy
|
|
||||||
- TRUSTED_FRAME_ORIGINS=http://homeassistant.local:8123
|
- TRUSTED_FRAME_ORIGINS=http://homeassistant.local:8123
|
||||||
- BAMBUDDY_EXTERNAL_ROOTS=/external/nas
|
- BAMBUDDY_EXTERNAL_ROOTS=/external/nas
|
||||||
- PORT=8870
|
- PORT=8870
|
||||||
@@ -20,19 +19,6 @@ services:
|
|||||||
# but the headroom means a slow teardown (several virtual printers on a Pi)
|
# but the headroom means a slow teardown (several virtual printers on a Pi)
|
||||||
# can still checkpoint the database instead of being killed mid-write.
|
# can still checkpoint the database instead of being killed mid-write.
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
postgres:
|
|
||||||
image: postgres:16-alpine
|
|
||||||
container_name: bambuddy-db
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: ${PG_USER:-bambuddy}
|
|
||||||
POSTGRES_PASSWORD: ${PG_PASS:?database password required}
|
|
||||||
POSTGRES_DB: bambuddy
|
|
||||||
volumes:
|
|
||||||
- bambuddy_pgdata:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
volumes:
|
volumes:
|
||||||
bambuddy_data:
|
bambuddy_data:
|
||||||
bambuddy_logs:
|
bambuddy_logs:
|
||||||
bambuddy_pgdata:
|
|
||||||
Reference in New Issue
Block a user