Created
May 8, 2018 16:59
-
-
Save mtlynch/ff0b7789bf7d8797cae09646163bee49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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