Set up nginx proxy environment variables
This commit is contained in:
parent
c439c85a94
commit
89a88a082e
5
Makefile
5
Makefile
|
@ -1,8 +1,10 @@
|
|||
IMAGE = homeassistant/home-assistant
|
||||
CONTAINER = home-assistant
|
||||
HOSTNAME = hass.phoenixinquis.is-a-geek.org
|
||||
HA_VERSION = $(shell cat .HA_VERSION)
|
||||
HASS_BIN = python -m homeassistant
|
||||
VOLUMES = $(PWD):/config /etc/localtime:/etc/localtime:ro
|
||||
ENV_VARS = VIRTUAL_HOST=$(HOSTNAME) VIRTUAL_IP=127.0.0.1 VIRTUAL_PORT=8123 LETSENCRYPT_HOST=$(HOSTNAME) LETSENCRYPT_EMAIL=correl@gmail.com
|
||||
HASS = docker run -it --rm \
|
||||
$(addprefix -v ,$(VOLUMES)) \
|
||||
$(IMAGE) $(HASS_BIN) \
|
||||
|
@ -16,8 +18,9 @@ test: pull
|
|||
run: pull
|
||||
docker run -d \
|
||||
--name $(CONTAINER) \
|
||||
$(addprefix -v ,$(VOLUMES)) \
|
||||
--net=host \
|
||||
$(addprefix -v ,$(VOLUMES)) \
|
||||
$(addprefix -e ,$(ENV_VARS)) \
|
||||
$(IMAGE):$(HA_VERSION)
|
||||
stop:
|
||||
docker stop $(CONTAINER)
|
||||
|
|
|
@ -28,7 +28,7 @@ http:
|
|||
api_password: !secret http_password
|
||||
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
|
||||
base_url: hass.phoenixinquis.is-a-geek.org
|
||||
server_port: 8199
|
||||
server_port: 8123
|
||||
|
||||
# Checks for available updates
|
||||
# Note: This component will send some information about your system to
|
||||
|
|
Loading…
Reference in New Issue