Skip to content

Commit

Permalink
Fix the host for redis and psql
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich committed Dec 18, 2024
1 parent fbe13ff commit f18437b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

# Mbin variables
DATABASE_URL="postgresql://mbin:[email protected]:5433/mbin?serverVersion=16&charset=utf8"
REDIS_DNS=redis://[email protected]:6380
DATABASE_HOST=127.0.0.1
DATABASE_URL="postgresql://mbin:ChangeThisPostgresPass@${DATABASE_HOST}:5433/mbin?serverVersion=16&charset=utf8"
REDIS_HOST=127.0.0.1
REDIS_DNS=redis://123456789@${REDIS_HOST}:6380
MAILER_DSN=null://default
KBIN_JS_ENABLED=false
KBIN_DEFAULT_LANG=en
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ jobs:
env:
COMPOSER_CACHE_DIR: ${{ steps.composer-cache.outputs.dir }}
SYMFONY_DEPRECATIONS_HELPER: disabled
DATABASE_HOST: postgres
REDIS_HOST: redis
run: php bin/phpunit tests/Functional
services:
postgres:
Expand All @@ -123,6 +125,9 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 5433:5432
redis:
# Docker Hub image
image: redis
Expand Down

0 comments on commit f18437b

Please sign in to comment.