Init
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
version: '3'
|
||||
services:
|
||||
mosquitto:
|
||||
image: "monster1025/alpine86-mosquitto:latest"
|
||||
container_name: mosquitto
|
||||
env_file: ./mosquitto/mqtt.env
|
||||
ports:
|
||||
- "1883:1883"
|
||||
restart: always
|
||||
|
||||
mysql:
|
||||
image: mariadb
|
||||
container_name: mysql
|
||||
env_file: ./mysql/mysql.env
|
||||
ports:
|
||||
- "3306:3306/tcp"
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /srv/mysql:/var/lib/mysql
|
||||
|
||||
hass:
|
||||
image: homeassistant/home-assistant
|
||||
container_name: hass
|
||||
volumes:
|
||||
- ./hass/settings:/config
|
||||
- ./hass/settings/hosts.txt:/etc/hosts:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "8123:8123"
|
||||
- "9898:9898/udp"
|
||||
- "4321:4321/udp"
|
||||
- "51827:51827" #Homekit
|
||||
depends_on:
|
||||
- mysql
|
||||
- mosquitto
|
||||
- influxdb
|
||||
- broadlink
|
||||
network_mode: "host"
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
|
||||
appdaemon:
|
||||
image: monster1025/appdaemon
|
||||
build:
|
||||
context: ./appdaemon
|
||||
args:
|
||||
VERSION: 3.0.2
|
||||
container_name: appdaemon
|
||||
depends_on:
|
||||
- hass
|
||||
volumes:
|
||||
- ./appdaemon/settings:/conf
|
||||
- ./hass/settings/secrets.yaml:/conf/secrets.yaml:ro
|
||||
- ./hass/settings/hosts.txt:/etc/hosts:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: always
|
||||
links:
|
||||
- "hass"
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
hostname: nginx
|
||||
restart: always
|
||||
container_name: nginx
|
||||
links:
|
||||
- "hass"
|
||||
- "appdaemon"
|
||||
volumes:
|
||||
- /srv/homeassistant/hosts.txt:/etc/hosts:ro
|
||||
volumes:
|
||||
- /srv/ssl:/config/keys
|
||||
- ./nginx-config/site-confs:/etc/nginx/conf.d
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
restart: always
|
||||
container_name: certbot
|
||||
volumes:
|
||||
- ./certbot/docker/update_certs.sh:/update_certs.sh:ro
|
||||
- /srv/ssl:/etc/letsencrypt
|
||||
- /var/lib/letsencrypt:/var/lib/letsencrypt
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "8081:80"
|
||||
entrypoint: ["/update_certs.sh"]
|
||||
#command: certonly --standalone --agree-tos --standalone-supported-challenges http-01 --email admin@yandex5.ru -d home.yandex5.ru
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
|
||||
broadlink:
|
||||
image: monster1025/broadlink
|
||||
container_name: broadlink
|
||||
links:
|
||||
- "mosquitto"
|
||||
env_file: ./broadlink/broadlink.env
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
###########################
|
||||
# GRAFANA #
|
||||
###########################
|
||||
grafana:
|
||||
image: grafana/grafana
|
||||
container_name: grafana
|
||||
volumes:
|
||||
- "/srv/grafana:/var/lib/grafana"
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=grafanapass
|
||||
links:
|
||||
- "influxdb:influxdb"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
|
||||
influxdb:
|
||||
image: influxdb
|
||||
container_name: influxdb
|
||||
volumes:
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
- "/srv/influxdb/db:/var/lib/influxdb"
|
||||
- "/srv/influxdb/log:/var/log/influxdb"
|
||||
ports:
|
||||
- "8083:8083"
|
||||
- "8086:8086"
|
||||
restart: always
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
Reference in New Issue
Block a user