Skip to content

Commit

Permalink
changed port listener args in nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Hollingsworth committed May 11, 2023
1 parent 6b6ec56 commit a3fb5d9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dockerhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
paths:
- "frontend/**"


permissions:
id-token: write
contents: read
Expand Down
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
test_sec.txt


# local env files
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ FROM nginx:1.23.3
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf

# Expose port 80
EXPOSE 80
# Expose port 5150
EXPOSE 5150

# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
8 changes: 7 additions & 1 deletion frontend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ services:
frontend:
build: .
ports:
- "8080:80"
- "5150:5150"
# secrets:
# - google_api

# secrets:
# google_api:
# file: ./test_sec.txt
2 changes: 1 addition & 1 deletion frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ http {

# include /etc/nginx/conf.d/*.conf;
server {
listen 80;
listen 5150;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
Expand Down

0 comments on commit a3fb5d9

Please sign in to comment.