-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.dist
95 lines (80 loc) · 3.09 KB
/
.env.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# 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.
#
# 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
###> docker ###
# -----
# Docker variables
# -----
# Components versions
TAG_MARIADB=10.5.11
TAG_NGINX=1.20
TAG_NODEJS=14
TAG_PHP=7.4-fpm
TAG_PHPMYADMIN=latest
TAG_MAILCATCHER=v0.8.0
# Project prefix
PROJECT=docker_sf5
PROJECT_VERSION=beta
PROJECT_API_VERSION=1
PROJECT_PWA_VERSION=1
IMAGE_NAME=docker_sf5_php:beta
CONTAINER_NAME=docker_sf5_php
# MariaDB
DATABASE_HOST=mariadb
DATABASE_PORT=3306
DATABASE_NAME=sf5
DATABASE_NAME_SUFFIX=
DATABASE_USER=sf5
DATABASE_PASSWORD=sf5
DATABASE_ALLOW_EMPTY_ROOT_PASSWORD=true
DATABASE_ROOT_USER=root
DATABASE_ROOT_PASSWORD=secret
EXTRA_DATABASES=sf5_test
# Application user
APP_USER=www-data
# oAuth configuration
OAUTH_PROVIDER_URL=${OAUTH_PROVIDER_URL:-https://ssolan.s2pweb.com/release/oidc}
OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID:-epr_backend}
OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET:-X5yaaXsz6DUFLnHlkdI5BQWU09FDwkCn2o3NReziK4U}
###< docker ###
### ---------------------------------------- ###
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=2be841b2439e1b481b2ed04606d0890d
###< symfony/framework-bundle ###
###> 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="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://sf5:sf5@mariadb:3306/sf5?serverVersion=mariadb-10.5.11"
# DATABASE_URL="postgresql://db_user:[email protected]:5432/db_name?serverVersion=13&charset=utf8"
DATABASE_URL=mysql://${DATABASE_ROOT_USER}:${DATABASE_ROOT_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}?serverVersion=mariadb-${TAG_MARIADB}
###< doctrine/doctrine-bundle ###
###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=semaphore
###< symfony/lock ###
###> symfony/mailer ###
MAILER_DSN=smtp://mailcatcher:1025
###< symfony/mailer ###
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=d17912960a6255aeff751ce56a401c5f
###< lexik/jwt-authentication-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###