Skip to content

Commit

Permalink
fix: set hostname for wikibase server
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Oct 30, 2023
1 parent 6add501 commit ef3c398
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ DB_PASS=change-this-sqlpassword
WIKIBASE_PINGBACK=false
# wikibase.svc is the internal docker hostname, change this value to the public hostname
WIKIBASE_HOST=wikibase.svc
WIKIBASE_PORT=80
WIKIBASE_PORT=8000
2 changes: 1 addition & 1 deletion .github/workflows/docker.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
docker-test:
env:
COMPOSE_ARGS: -f docker-compose.yml -f docker-compose.ci.yml
COMPOSE_ARGS: -f docker-compose.yml
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
environment:
- WBSTACK_WIKIBASE_SCHEME=http
- WBSTACK_LOOP_LIMIT=100
- WBSTACK_API_ENDPOINT=http://api.svc:3030/getBatches
- WBSTACK_API_ENDPOINT=http://api.svc:3030
- WBSTACK_BATCH_SLEEP=1
- WIKIBASE_HOST=wikibase.svc
- HEAP_SIZE=32m
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ services:
aliases:
- api.svc
environment:
- API_WIKIBASE_DOMAIN=localhost
- API_WDQS_BACKEND=localhost:9999
- API_WIKIBASE_DOMAIN=wikibase.svc
- API_WDQS_BACKEND=wdqs.svc:9999

wikibase:
image: "${WIKIBASE_IMAGE_NAME}"
Expand All @@ -59,7 +59,7 @@ services:
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
WIKIBASEHOST:
WIKIBASE_HOST: ${WIKIBASE_HOST}

mysql:
image: "${MYSQL_IMAGE_NAME}"
Expand Down
1 change: 1 addition & 0 deletions seeder/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ http.createServer(function (req, res) {
};
res.writeHead(200, {'Content-Type': 'text/json'});
res.end(JSON.stringify([responseObject]));
return;
default:
res.writeHead(404);
res.end('Not found');
Expand Down

0 comments on commit ef3c398

Please sign in to comment.