Skip to content

Commit 7dfcac6

Browse files
committed
Fix docker compose DATABASE_URL env
1 parent e9532f4 commit 7dfcac6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ APP_SECRET=0aa93032faae15a4ca1d4f9a5bd681de
2323
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
2424
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
2525
#
26-
DATABASE_URL="postgresql://killer:112358@127.0.0.1:5432/symfokiller?serverVersion=16&charset=utf8"
27-
DATABASE_URL_TEST="postgresql://killer:112358@127.0.0.1:5432/symfokiller_test?serverVersion=13&charset=utf8"
26+
DATABASE_URL="postgresql://killer:112358@database:5432/symfokiller?serverVersion=16&charset=utf8"
27+
DATABASE_URL_TEST="postgresql://killer:112358@database:5432/symfokiller_test?serverVersion=13&charset=utf8"
2828
POSTGRES_DB=symfokiller
2929
POSTGRES_DB_TEST=symfokiller_test
3030
POSTGRES_USER=killer

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
99
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
1010
# Run "composer require symfony/orm-pack" to install and configure Doctrine ORM
11-
DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-15}&charset=${POSTGRES_CHARSET:-utf8}
11+
DATABASE_URL: ${DATABASE_URL:-}
1212
DATABASE_URL_TEST: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB_TEST:-app}?serverVersion=${POSTGRES_VERSION:-15}&charset=${POSTGRES_CHARSET:-utf8}
1313
# Run "composer require symfony/mercure-bundle" to install and configure the Mercure integration
1414
MERCURE_URL: ${CADDY_MERCURE_URL:-http://php/.well-known/mercure}

0 commit comments

Comments
 (0)