diff --git a/docker-compose.yml b/docker-compose.yml index 88d7132..c6adb8b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,8 +9,8 @@ services: image: homeassistant/home-assistant:0.61.1 environment: - "TZ=Europe/Berlin" - - "COFFEE_FLASH_BASE_URL=http://flash-home.duckdns.org:3000/" - - "PROVIDER_FLASH_BASE_URL=http://flash-home.duckdns.org:3001/" + env_file: + - env ports: - 80:8123 # Home Assistant - 1883:1883 # MQTT diff --git a/env b/env new file mode 100644 index 0000000..e69de29 diff --git a/fabfile.py b/fabfile.py index 26492ae..a4162d1 100644 --- a/fabfile.py +++ b/fabfile.py @@ -9,8 +9,8 @@ def deploy(): with cd('/srv/flash-home'): run('git pull origin master') - run('echo "COFFEE_FLASH_BASE_URL=http://flash-home.duckdns.org:3000/" > .env') - run('echo "PROVIDER_FLASH_BASE_URL=http://flash-home.duckdns.org:3001/" >> .env') + run('echo "COFFEE_FLASH_BASE_URL=http://flash-home.duckdns.org:3000/" > env') + run('echo "PROVIDER_FLASH_BASE_URL=http://flash-home.duckdns.org:3001/" >> env') run('docker-compose --project-name flash-home pull') run('docker-compose --project-name flash-home up -d --build --force-recreate')