-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 1.25 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "3.6"
services:
webhook2mqtt:
build: .
restart: always
# adapt to your needs
# ports:
# - "127.0.0.1:5058:80"
# dns_search: lan
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
environment:
TZ: "Europe/Berlin"
MQTT_SERVER: 'home.jru.me'
MQTT_PORT: 1883
MQTT_PATH: 'homeassistant/webhook'
# example config for https with traefik
# networks:
# - traefik_proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.webhook2mqtt_router_http.entrypoints=web"
- "traefik.http.routers.webhook2mqtt_router_http.rule=Host(`netatmo.jru.me`)"
# - "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
# - "traefik.http.routers.webhook2mqtt_router_http.middlewares=https_redirect"
- "traefik.http.routers.webhook2mqtt_router.entrypoints=websecure"
- "traefik.http.routers.webhook2mqtt_router.rule=Host(`netatmo.jru.me`)"
- "traefik.http.routers.webhook2mqtt_router.tls=true"
- "traefik.http.routers.webhook2mqtt_router.tls.certresolver=my_certresolver"
restart: always
# log to syslog | optional
logging:
driver: syslog
#networks:
# traefik_proxy:
# name: traefik
# external: true