-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
25 lines (22 loc) · 921 Bytes
/
.env
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
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=fake_app_secret
###< symfony/framework-bundle ###
###> MySQL Database ###
SERVER_IP=0.0.0.0
MYSQL_HOST=mysql
MYSQL_DATABASE=pokemonapi
MYSQL_USER=poke_admin
MYSQL_PASSWORD=poke_pass
MYSQL_ROOT_PASSWORD=root
###< MySQL Database ###
###> 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://%env(MYSQL_USER)%:%env(MYSQL_PASSWORD)%@%env(MYSQL_HOST)%:3306/%env(MYSQL_DATABASE)%?serverVersion=8&charset=utf8"
###< doctrine/doctrine-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###