Enhance params and envs

This commit is contained in:
thibaud-leclere
2026-01-15 13:16:09 +01:00
parent b38ef63395
commit be171b45b4
5 changed files with 18 additions and 28 deletions

View File

@@ -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
View 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"

View File

@@ -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