Skip to content

Instantly share code, notes, and snippets.

@mtlynch
Created May 8, 2018 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtlynch/ff0b7789bf7d8797cae09646163bee49 to your computer and use it in GitHub Desktop.
Save mtlynch/ff0b7789bf7d8797cae09646163bee49 to your computer and use it in GitHub Desktop.
services:
sia:
image: mtlynch/sia:1.3.3-rc1
container_name: sia
environment:
- SIA_MODULES=gctrw
restart: on-failure
ports:
- 9981:9981
volumes:
- ./sia-data:/sia-data
- ./uploads:/sia-uploads
nginx:
image: nginx
container_name: nginx
restart: always
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
links:
- sia
# sia-metrics-collector is optional. It will collect Sia metrics for you
# in your metrics/ folder. You can delete this section if you don't want it.
sia-metrics-collector:
image: mtlynch/sia_metrics_collector:2018-05-08
container_name: sia-metrics-collector
environment:
- SIA_HOSTNAME=http://sia
- OUTPUT_FILE=/metrics/metrics.csv
restart: on-failure
volumes:
- ./metrics:/metrics
depends_on:
- sia
links:
- sia
events {}
http {
upstream sia-backend {
server sia:9980;
}
server {
listen 80;
proxy_read_timeout 600s;
rewrite ^/(.+)$ /renter/stream/$1 last;
location /renter/stream/ { proxy_pass http://sia:9980; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment