Skip to content

Commit

Permalink
fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
emileten committed Nov 14, 2023
1 parent 37ac057 commit d256d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ services:
context: dockerfiles
dockerfile: Dockerfile.browser
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8084:8080"
- "${MY_DOCKER_IP:-127.0.0.1}:8084:8084"
depends_on:
- stac

Expand Down
6 changes: 3 additions & 3 deletions dockerfiles/Dockerfile.browser
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ FROM nginx:1-alpine-slim
COPY --from=build-step /app/dist /usr/share/nginx/html
COPY --from=build-step /app/config.schema.json /etc/nginx/conf.d/config.schema.json

# change default port to 8080
# change default port to 8084
RUN apk add jq pcre-tools && \
sed -i 's/\s*listen\s*80;/ listen 8080;/' /etc/nginx/conf.d/default.conf && \
sed -i 's/\s*listen\s*80;/ listen 8084;/' /etc/nginx/conf.d/default.conf && \
sed -i 's/\s*location \/ {/ location \/ {\n try_files $uri $uri\/ \/index.html;/' /etc/nginx/conf.d/default.conf

EXPOSE 8080
EXPOSE 8084

STOPSIGNAL SIGTERM

Expand Down

0 comments on commit d256d1c

Please sign in to comment.