Skip to content

Commit

Permalink
Fix port config traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNewCivilian committed Sep 21, 2022
1 parent 34d3efa commit 65dd661
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/push-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- name: Setup ssh
uses: kielabokkie/ssh-key-and-known-hosts-action@v1
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
FROM maven:3-openjdk-18
WORKDIR /app
COPY . .
RUN mvn -DskipTests clean install
RUN mvn -DskipTests clean install
EXPOSE 8989
CMD ["java", "-Ddw.graphhopper.datareader.file=data/stuttgart.pbf", "-jar", "web/target/graphhopper-web-4.0-SNAPSHOT.jar", "server", "config.yml"]
CMD ["java", "-Xmx4g", "-Ddw.graphhopper.datareader.file=data/cargorocket-germany.pbf", "-jar", "web/target/graphhopper-web-4.0-SNAPSHOT.jar", "server", "config.yml"]
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ server:
- type: http
port: 8989
# for security reasons bind to localhost
bind_host: localhost
bind_host: 0.0.0.0
request_log:
appenders: []
admin_connectors:
- type: http
port: 8990
bind_host: localhost
bind_host: 0.0.0.0
# See https://www.dropwizard.io/1.3.8/docs/manual/configuration.html#logging
logging:
appenders:
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ services:
- "traefik.http.routers.cargorocket_de_gh.rule=Host(`graphhopper.cargorocket.de`)"
- "traefik.http.routers.cargorocket_de_gh.entrypoints=websecure"
- "traefik.http.routers.cargorocket_de_gh.tls=true"
- "traefik.http.routers.cargorocket_de_gh.tls.certResolver=lets_encrypt"
- "traefik.http.routers.cargorocket_de_gh.tls.certResolver=lets_encrypt"
- "traefik.http.services.cargorocket_de_gh.loadbalancer.server.port=8989"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
module.exports = {
entry: './src/index.js',
// with webpack 5 this is needed to transpile webpack's 'glue code' even though we set target es5 in tsconfig already
target: 'es5',
target: ["web", "es5"],
module: {
rules: [
{
Expand Down

0 comments on commit 65dd661

Please sign in to comment.