diff --git a/deployment/k3s/templates/deployments/webclient-deployment.yaml b/deployment/k3s/templates/deployments/webclient-deployment.yaml index ff7c91826..7826e9e28 100644 --- a/deployment/k3s/templates/deployments/webclient-deployment.yaml +++ b/deployment/k3s/templates/deployments/webclient-deployment.yaml @@ -34,7 +34,7 @@ spec: name: webclient env: - name: TILESERVER_URL - value: http://maps-svc.navigatum.svc.cluster.local:3001 + value: http://maps-svc.navigatum.svc.cluster.local:8080 - name: CDN_URL value: http://cdn-svc.navigatum.svc.cluster.local:3002 - name: MAIN_API_URL diff --git a/deployment/k3s/templates/networking/ingress.yaml b/deployment/k3s/templates/networking/ingress.yaml index defa9b158..2d3cd4e5c 100644 --- a/deployment/k3s/templates/networking/ingress.yaml +++ b/deployment/k3s/templates/networking/ingress.yaml @@ -28,7 +28,7 @@ spec: match: Host(`{{ $.Values.url }}`) && PathPrefix(`/maps/`) services: - name: maps-svc - port: 3001 + port: 8080 middlewares: - name: stripprefix - name: cache-2-months diff --git a/deployment/k3s/templates/networking/service.yaml b/deployment/k3s/templates/networking/service.yaml index 3eaf3cc05..297fe590e 100644 --- a/deployment/k3s/templates/networking/service.yaml +++ b/deployment/k3s/templates/networking/service.yaml @@ -49,7 +49,7 @@ spec: app.kubernetes.io/name: maps ports: - name: http - port: 3001 + port: 8080 targetPort: 8080 - name: src port: 7771 diff --git a/docker-compose.yml b/docker-compose.yml index 42361b4d2..d1e88e707 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,10 +6,10 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.navigatum.rule=Host(`nav.tum.de`)" - ports: - - "127.0.0.1:3000:3000" + expose: + - "3000" environment: - TILESERVER_URL: http://tileserver:3001 + TILESERVER_URL: http://tileserver:8080 CDN_URL: http://data:3002 MAIN_API_URL: http://main-api:3003 FEEDBACK_API_URL: http://feedback-api:3004 @@ -64,8 +64,8 @@ services: volumes: - tileserver-src:/data/:ro read_only: true - ports: - - "127.0.0.1:3001:8080" + expose: + - "8080" depends_on: tileserver-init-config: condition: service_completed_successfully @@ -79,8 +79,8 @@ services: - "traefik.enable=true" - "traefik.http.routers.navigatum.rule=Host(`nav.tum.de`) && PathPrefix(`/cdn/`)" build: ./data - ports: - - "127.0.0.1:3002:3002" + expose: + - "3002" # server main-api: image: ghcr.io/tum-dev/navigatum-server:main @@ -90,8 +90,8 @@ services: - "traefik.http.routers.navigatum.rule=Host(`nav.tum.de`) && PathPrefix(`/api/`)" build: ./server command: /bin/navigatum-main-api - ports: - - "127.0.0.1:3003:3003" + expose: + - "3003" volumes: - type: tmpfs target: /home/navigatum/.cache @@ -115,6 +115,8 @@ services: meilisearch: image: getmeili/meilisearch:v1.6.2 restart: always + expose: + - "7700" healthcheck: test: wget -q --spider http://localhost:7700/health retries: 5 @@ -128,8 +130,8 @@ services: - "traefik.http.routers.navigatum.rule=Host(`nav.tum.de`) && PathPrefix(`/api/feedback`)" build: ./server command: /bin/navigatum-feedback - ports: - - "127.0.0.1:3004:3004" + expose: + - "3004" healthcheck: test: wget -q --spider http://localhost:3004/api/feedback/status retries: 5 @@ -144,8 +146,8 @@ services: POSTGRES_DB: ${POSTGRES_DB} volumes: - postgres-data:/var/lib/postgresql/data - ports: - - "5432:5432" + expose: + - "5432" healthcheck: test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}"] retries: 5