refactor: enhance environment configuration and CI workflow for improved flexibility
- Updated .env.example to provide clearer instructions and examples for production and development environments. - Refactored docker-compose files to utilize environment variables for database and application settings, improving configurability. - Enhanced .gitea/workflows/test.yml to streamline E2E testing setup, ensuring consistent handling of environment variables across different stages.
This commit is contained in:
1 parent
f4a86f9726
commit
fe86d763ad
5 files changed
+91
-78
No files matched your search
+6
-5
@@ -5,8 +5,8 @@ services:
|
||||
image: postgres:16-alpine
|
||||
container_name: shinkan-db-prod
|
||||
environment:
|
||||
POSTGRES_DB: shinkan
|
||||
POSTGRES_USER: shinkan_user
|
||||
POSTGRES_DB: "${DB_NAME:-shinkan}"
|
||||
POSTGRES_USER: "${DB_USER:-shinkan_user}"
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
volumes:
|
||||
- shinkan-db-data:/var/lib/postgresql/data
|
||||
@@ -40,9 +40,10 @@ services:
|
||||
# Erste Self-Registration → Admin; oder ADMIN_BOOTSTRAP_EMAILS=mail@…,weitere@…
|
||||
AUTO_ADMIN_FIRST_USER: "${AUTO_ADMIN_FIRST_USER:-true}"
|
||||
ADMIN_BOOTSTRAP_EMAILS: "${ADMIN_BOOTSTRAP_EMAILS:-}"
|
||||
APP_URL: https://shinkan.jinkendo.de
|
||||
ALLOWED_ORIGINS: https://shinkan.jinkendo.de
|
||||
ENVIRONMENT: production
|
||||
# Werte wie in .env (APP_URL, ALLOWED_ORIGINS, ENVIRONMENT) — keine zweite „Wahrheit“ in YAML
|
||||
APP_URL: "${APP_URL:-https://shinkan.jinkendo.de}"
|
||||
ALLOWED_ORIGINS: "${ALLOWED_ORIGINS:-https://shinkan.jinkendo.de}"
|
||||
ENVIRONMENT: "${ENVIRONMENT:-production}"
|
||||
volumes:
|
||||
- shinkan-media:/app/media
|
||||
ports:
|
||||
|
||||
Reference in new issue
Block a user