Move Docker configuration secrets to environment file
This commit is contained in:
+16
-7
@@ -3,30 +3,39 @@ services:
|
||||
image: postgres:17
|
||||
container_name: pingu-concerts-db
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
POSTGRES_DB: concerts
|
||||
POSTGRES_USER: concerts
|
||||
POSTGRES_PASSWORD: change-me-later
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./db/init:/docker-entrypoint-initdb.d:ro
|
||||
|
||||
|
||||
web:
|
||||
build: ./app
|
||||
container_name: pingu-concerts-web
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "8080:8000"
|
||||
|
||||
environment:
|
||||
DATABASE_URL: postgresql://concerts:change-me-later@db:5432/concerts
|
||||
INITIAL_ADMIN_USERNAME: kai
|
||||
INITIAL_ADMIN_PASSWORD: test123
|
||||
INITIAL_ADMIN_EMAIL: kai@local.invalid
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
|
||||
|
||||
INITIAL_ADMIN_USERNAME: ${INITIAL_ADMIN_USERNAME}
|
||||
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD}
|
||||
INITIAL_ADMIN_EMAIL: ${INITIAL_ADMIN_EMAIL}
|
||||
|
||||
volumes:
|
||||
- concert_uploads:/app/static/uploads
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
concert_uploads:
|
||||
|
||||
Reference in New Issue
Block a user