Skip to content

Instantly share code, notes, and snippets.

# Redirect all http traffic to https
server {
listen 80;
return 301 https://$host$request_uri;
}
# Portainer Upstream
upstream portainer {
server YOUR.PI.IP.ADDRESS:9000;
keepalive 32;
version: '2.1'
services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:0.99.1
network_mode: "host"
volumes:
- /opt/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /etc/letsencrypt:/etc/letsencrypt:ro