This is a Docker setup for using a Home Assistant server using nginx reverse proxy and Lets Encrypt.
After following these steps, this configuration should work without additional modification
- Fill out the variables in
.env
- Call
./init-letsencrypt.sh
to setup the initial certificates
To start the server, just run docker-compose up
If you would like to run this as a service on linux. Create this file /etc/systemd/system/ha-docker.service
[Unit]
Description=Docker Compose Service for Webserver ...
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=...
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target
Then run systemctl enable ha-docker
All server data will be placed under the ./data
folder
These two repos that were a great starting point: