Skip to content

Commit

Permalink
changed streamlit port in docker to 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Jun 16, 2024
1 parent 845ccc3 commit 2136df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ services:
container_name: streamlit
restart: always
ports:
- "80:80"
- "8080:80"
command: streamlit run Introduction.py --global.disableWidgetStateDuplicationWarning true --server.port=80
4 changes: 2 additions & 2 deletions nginx/project.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ server {
}

location / {
proxy_pass http://streamlit:80; # Assuming Streamlit runs on port 80 inside the container
proxy_pass http://streamlit:8080; # Assuming Streamlit runs on port 80 inside the container
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -46,7 +46,7 @@ server {
}

location / {
proxy_pass http://streamlit:80;
proxy_pass http://streamlit:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 2136df0

Please sign in to comment.