Enhance params and envs
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_pgsql
|
||||
host: '%env(resolve:POSTGRES_HOST)%'
|
||||
port: '%env(resolve:POSTGRES_PORT)%'
|
||||
dbname: '%env(resolve:POSTGRES_DB)%'
|
||||
user: '%env(resolve:POSTGRES_USER)%'
|
||||
password: '%env(resolve:POSTGRES_PASSWORD)%'
|
||||
server_version: '%env(resolve:POSTGRES_VERSION)%'
|
||||
host: '%postgres_host%'
|
||||
port: '%postgres_port%'
|
||||
dbname: '%postgres_db%'
|
||||
user: '%postgres_user%'
|
||||
password: '%postgres_password%'
|
||||
server_version: '%postgres_version%'
|
||||
charset: utf8
|
||||
|
||||
# IMPORTANT: You MUST configure your server version,
|
||||
|
||||
9
config/parameters.yml
Normal file
9
config/parameters.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
parameters:
|
||||
postgres_version: "16"
|
||||
postgres_host: "127.0.0.1"
|
||||
postgres_port: "5432"
|
||||
postgres_db: "app"
|
||||
postgres_user: "app"
|
||||
postgres_password: "pwd"
|
||||
|
||||
tmdb_host: "https://api.themoviedb.org/3"
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
||||
parameters:
|
||||
imports:
|
||||
- { resource: parameters.yml }
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
|
||||
Reference in New Issue
Block a user