Browse Source

add container

pull/3/head
fedy95 5 years ago
parent
commit
9e73fa8170
  1. 1
      .drone.yml
  2. 9
      Makefile
  3. 20
      docker-compose.yml

1
.drone.yml

@ -18,6 +18,7 @@ steps:
commands:
- cd /mnt/md0/infra/home-assistant
- git pull
- make restart
trigger:
branch:

9
Makefile

@ -0,0 +1,9 @@
MAKEFLAGS += --silent
.PHONY: *
restart:
docker-compose -f docker-compose.yml down
docker-compose -f docker-compose.yml up -d
.DEFAULT_GOAL := restart

20
docker-compose.yml

@ -0,0 +1,20 @@
version: "3"
services:
home-assistant:
image: homeassistant/home-assistant:stable
container_name: home-assistant
hostname: home-assistant
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./etc/config:/config
ports:
- "8123:8123"