# Copy this file to `.env` and adjust values as needed. # cp .env.example .env # # Compose reads `.env` automatically to fill the ${VAR} placeholders in # docker-compose.yml. The Website app ALSO reads a `.env` file at runtime via # swift-configuration (allowMissing: true), so any extra app config keys placed # here are picked up by the running service too. # --- Image / deployment ------------------------------------------------------- # Host name of the container running the Website service. HOST_CONTAINER=containers.rock-n-code.com # Owner of the container running the Website service. HOST_OWNER=site # Password for authenticating to the container registry. HOST_PASSWORD= # Host port mapped to the container's port 8080. HOST_PORT=8080 # User name for authenticating to the container registry. HOST_USER= # Name of the Docker image to pull/run. IMAGE_NAME=website # Platform of the Docker image to pull/run. IMAGE_PLATFORM=linux/arm64 # Tag of the image to pull/run. # Use a semver in production; avoid `latest` so rollbacks are unambiguous. IMAGE_TAG=latest # --- Application config ------------------------------------------------------- # Server name reported by the HTTP service. HTTP_SERVER_NAME=SiteWebsite # Log verbosity: trace | debug | info | notice | warning | error | critical LOG_LEVEL=info # --- Persistence ---------------------------------------------------------------- # Persistence driver: inMemory (default, no infrastructure) or mysql. DATABASE_DRIVER=inMemory # MySQL/MariaDB connection, used when DATABASE_DRIVER=mysql. # `mariadb` is the local database's Compose service name; use 127.0.0.1 when # running the app directly with `swift run`. DATABASE_HOST=localhost # Port of the database to connect to. DATABASE_PORT=3306 # Name of the database to connect to. DATABASE_NAME=site # Username of the database to connect as. DATABASE_USERNAME=site # Provide the real password via the environment or a secret — never commit it. DATABASE_PASSWORD=site # TLS posture when connecting: off | prefer | require (use `require` in production). DATABASE_TLS=off