Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Copy `.env.example` to be `.env` and run the container.
```bash
cp .env.example .env
docker-compose up

# or to scale the number of streamlit containers
# docker-compose up --scale app=4
```

You should be able to view the app via `localhost:8000`. If you want to change the
Expand Down
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
version: '3.1'

services:
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
ports:
- "${PORT}:80"

app:
build: .
restart: always
ports:
- "${PORT}:8000"
- "8000"
17 changes: 17 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
user nginx;

events {
worker_connections 1000;
}
http {
server {
listen 80;
location / {
proxy_pass http://app:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
}