Skip to content

Commit

Permalink
[config] getenv() -> $_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
borazslo committed Mar 3, 2024
1 parent fac2ebc commit f866d63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions config/config.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

$environment['default'] = [
'connection' => [
'host' => 'mysql'),
'user' => getenv('MISEREND_MYSQL_USER'),
'password' => getenv('MISEREND_MYSQL_PASSWORD'),
'database' => getenv('MISEREND_MYSQL_DATABASE'),
'host' => 'mysql',
'user' => $_ENV['MISEREND_MYSQL_USER'],
'password' => $_ENV['MISEREND_MYSQL_PASSWORD'],
'database' => $_ENV['MISEREND_MYSQL_DATABASE'],
],
'path' => [
'domain' => 'https://miserend.hu',
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,17 @@ services:
- "${MISEREND_PORT:-8000}:8000"
environment:
MISEREND_WEBAPP_ENVIRONMENT: ${MISEREND_WEBAPP_ENVIRONMENT:-development}
MISEREND_MYSQL_DATABASE: ${MISEREND_MYSQL_DATABASE}
MISEREND_MYSQL_USER: ${MISEREND_MYSQL_USER}
MISEREND_MYSQL_PASSWORD: ${MISEREND_MYSQL_PASSWORD}
networks:
inner:
aliases:
- miserend
depends_on:
- mysql
- mailcatcher
- build
- miserend-build

networks:
inner:
Expand Down

0 comments on commit f866d63

Please sign in to comment.