Skip to content

Commit

Permalink
Fix running phpunit with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Mar 20, 2023
1 parent e09a351 commit f2b2f8e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.testing.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ DB_DATABASE_STORE=osu_store_test
DB_DATABASE_UPDATES=osu_updates_test
DB_DATABASE_CHARTS=osu_charts_test

# match with docker-compose.yml
ES_INDEX_PREFIX=test_
SCHEMA=test

PAYMENT_SANDBOX=true
19 changes: 18 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.4'

x-env: &x-env
APP_KEY: "${APP_KEY}"
BEATMAPS_DIFFICULTY_CACHE_SERVER_URL: http://beatmap-difficulty-lookup-cache:5000
BEATMAPS_DIFFICULTY_CACHE_SERVER_URL: http://beatmap-difficulty-lookup-cache
BROADCAST_DRIVER: redis
CACHE_DRIVER: redis
DB_CONNECTION_STRING: Server=db;Database=osu;Uid=osuweb;
Expand Down Expand Up @@ -160,6 +160,23 @@ services:
<<: *x-env
SCHEMA: "${SCHEMA:-1}"

score-indexer-test:
image: pppy/osu-elastic-indexer
command: ["queue", "watch", "--force-version"]
depends_on:
redis:
condition: service_healthy
db:
condition: service_healthy
elasticsearch:
condition: service_healthy
environment:
<<: *x-env
DB_CONNECTION_STRING: Server=db;Database=osu_test;Uid=osuweb;
# match with .env.testing.example
ES_INDEX_PREFIX: test_
SCHEMA: test

volumes:
database:
elasticsearch:

0 comments on commit f2b2f8e

Please sign in to comment.