version: '3' services: home_assistant: image: homeassistant/home-assistant restart: always container_name: home_assistant environment: - TZ=Europe/Paris volumes: - home_assistant_config:/config - /etc/localtime:/etc/localtime:ro network_mode: host expose: - 8123 labels: - "traefik.enable=true" - "traefik.http.routers.homeassistant-secure.entrypoints=https" - "traefik.http.routers.homeassistant-secure.rule=Host(`domo.{{ server.domain }}`)" - "traefik.http.routers.homeassistant-secure.tls=true" - "traefik.http.routers.homeassistant-secure.tls.certresolver=sslResolver" # - "traefik.http.routers.homeassistant-secure.service=homeassistant" - "traefik.http.services.homeassistant.loadbalancer.server.port=8123" # BACKUP backup_home_assistant_config: image: offen/docker-volume-backup:latest restart: always environment: BACKUP_CRON_EXPRESSION: "{{ server.backup.cron_expression }}" BACKUP_FILENAME: "{{ server.backup.filename_date_format }}-home-assistant-config.tar.gz" BACKUP_LATEST_SYMLINK: home-assistant-config.latest.tar.gz BACKUP_EXCLUDE_REGEXP: "\\.log$$" BACKUP_RETENTION_DAYS: "{{ server.backup.retention_days }}" volumes: - home_assistant_config:/backup:ro - {{ server.backup.folder }}/home_assistant:/archive volumes: home_assistant_config: