Skip to content

Commit

Permalink
Merge pull request #10 from Amsterdam/feature/nginx
Browse files Browse the repository at this point in the history
Feature/nginx
  • Loading branch information
krisdg authored Mar 26, 2024
2 parents dc8d09b + 7c39379 commit 4770bfa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ RUN apk add -U tzdata \
&& rm -rf \
/var/cache/apk/*

EXPOSE 8080

COPY nginx.conf /etc/nginx/conf.d/default.conf

COPY dist /usr/share/nginx/html
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ services:
build:
context: .
ports:
- 8095:80
- 8095:8080
image: ${REGISTRY:-localhost:5001}/${REPOSITORY:-opdrachten/amaps}:${VERSION:-latest}

14 changes: 14 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 8080;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

0 comments on commit 4770bfa

Please sign in to comment.