Skip to content

Commit

Permalink
fixed the webclient not emmerging because in prod the services are na…
Browse files Browse the repository at this point in the history
…med differently
  • Loading branch information
CommanderStorm committed Nov 11, 2023
1 parent 307ebd0 commit e5b7d83
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@ services:
- "3000:3000"
environment:
TILESERVER_URL: http://tilserver:3001
CDN_URL: http://cdn:3002
CDN_URL: http://data:3002
MAIN_API_URL: http://main-api:3003
FEEDBACK_API_URL: http://feedback-api:3004
CALENDAR_API_URL: http://calendar-api:3005
depends_on:
tileserver:
condition: service_healthy
data:
condition: service_healthy
main-api:
condition: service_healthy
feedback-api:
condition: service_healthy
calendar-api:
condition: service_healthy
# maps
tileserver-init-sprites:
image: alpine:latest
Expand Down
2 changes: 1 addition & 1 deletion webclient/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ COPY --from=build-stage /dist /app

EXPOSE 3000
HEALTHCHECK CMD curl --fail localhost:3000/health || exit 1
CMD sh -c "sed -i 's|TILESERVER_URL|${TILESERVER_URL}|g' /etc/nginx/nginx.conf && sed -i 's|CDN_URL|${CDN_URL}|g' /etc/nginx/nginx.conf && sed -i 's|MAIN_API_URL|${MAIN_API_URL}|g' /etc/nginx/nginx.conf && sed -i 's|FEEDBACK_API_URL|${FEEDBACK_API_URL}|g' /etc/nginx/nginx.conf && sed -i 's|CALENDAR_API_URL|${CALENDAR_API_URL}|g' /etc/nginx/nginx.conf && cat /etc/nginx/nginx.conf && nginx -g daemon off;"]
CMD sh -c "sed -i 's|TILESERVER_URL|${TILESERVER_URL}|g' /etc/nginx/nginx.conf && sed -i 's|CDN_URL|${CDN_URL}|g' /etc/nginx/nginx.conf && sed -i 's|MAIN_API_URL|${MAIN_API_URL}|g' /etc/nginx/nginx.conf && sed -i 's|FEEDBACK_API_URL|${FEEDBACK_API_URL}|g' /etc/nginx/nginx.conf && sed -i 's|CALENDAR_API_URL|${CALENDAR_API_URL}|g' /etc/nginx/nginx.conf && cat /etc/nginx/nginx.conf && nginx -g 'daemon off;'"

0 comments on commit e5b7d83

Please sign in to comment.