You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.7 KiB
53 lines
2.7 KiB
# In all environments, the following files are loaded if they exist, |
|
# the latter taking precedence over the former: |
|
# |
|
# * .env contains default values for the environment variables needed by the app |
|
# * .env.local uncommitted file with local overrides |
|
# * .env.$APP_ENV committed environment-specific defaults |
|
# * .env.$APP_ENV.local uncommitted environment-specific overrides |
|
# |
|
# Real environment variables win over .env files. |
|
# |
|
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. |
|
# https://symfony.com/doc/current/configuration/secrets.html |
|
# |
|
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). |
|
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration |
|
|
|
###> symfony/framework-bundle ### |
|
APP_ENV=dev |
|
APP_SECRET=9e287f1ad737386dde46d51e80487236 |
|
# Comma-separated CIDRs for reverse proxies (used when APP_ENV=prod). Override on the server if needed. |
|
# TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,::1 |
|
###< symfony/framework-bundle ### |
|
###> docker ### |
|
# Dev URL: http://127.0.0.1:${HTTP_PORT}/ (override HTTP_PORT/HTTPS_PORT if busy). |
|
HTTP_PORT=9080 |
|
HTTPS_PORT=9443 |
|
# SERVER_NAME=:80 |
|
# If MYSQL_* changed after the DB volume exists: docker compose down -v (wipes data), then up. |
|
MYSQL_DATABASE=unfold_db |
|
MYSQL_VERSION=8.0 |
|
MYSQL_CHARSET=utf8mb4 |
|
MYSQL_USER=unfold_user |
|
MYSQL_PASSWORD=password |
|
# Root password is only used for the bundled database service, see compose.yaml |
|
# skip it, if you use your own |
|
MYSQL_ROOT_PASSWORD=root_password |
|
# Set to 1 in the php service environment to run `app:prewarm` once after migrations on container start |
|
# (magazine + metadata + comment cache; not a substitute for `scripts/docker-prewarm.sh`, which also runs articles:get). |
|
# PREWARM_ON_START=0 |
|
# Hub deploy: optional full image ref (default silberengel/unfold:latest in compose.hub.yaml). |
|
# UNFOLD_DOCKER_IMAGE=silberengel/unfold:1.0.0 |
|
# Optional extra CLI args for the docker `cron` service (full `app:prewarm` every 10 min). Example: --metadata-limit=100 --no-magazine |
|
# PREWARM_FLAGS= |
|
# compose.hub.yaml: default host port is 9080. Use 80 only if nothing else binds it. Loopback-only example: |
|
# HTTP_PUBLISH=127.0.0.1:9080 |
|
# HTTP_PUBLISH=80 |
|
###< docker ### |
|
|
|
###> doctrine/doctrine-bundle ### |
|
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url |
|
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml |
|
DATABASE_URL="mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@database:3306/${MYSQL_DATABASE}?serverVersion=${MYSQL_VERSION}&charset=${MYSQL_CHARSET}" |
|
###< doctrine/doctrine-bundle ###
|
|
|