Skip to content

Commit

Permalink
ci: use host ip to reach the mongodb container in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JSPRH committed Feb 22, 2024
1 parent 2e0e046 commit 71f2286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: ./tools/db/kordis-db.sh init e2edb
- name: Start API and SPA containers
run: |
docker run -d --name kordis-api-container -p 3000:3333 -e MONGODB_URI=mongodb://host.docker.internal:27017/e2edb -e AUTH_PROVIDER=dev kordis-api:${{ github.sha }}
docker run -d --name kordis-api-container -p 3000:3333 -e MONGODB_URI=mongodb://172.17.0.1:27017/e2edb -e AUTH_PROVIDER=dev kordis-api:${{ github.sha }}
docker run -d --name kordis-spa-container -p 4200:8080 -e API_URL=http://localhost:3000 -e AUTH_PROVIDER=dev kordis-spa:${{ github.sha }}
- name: Run E2Es
id: e2e-tests
Expand Down

0 comments on commit 71f2286

Please sign in to comment.