forked from openhab/openhab-google-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (38 loc) · 1.34 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
40
41
42
version: "3"
services:
ga:
image: jasonxh/openhab-google-assistant
build: .
command: [ "--oh-host", "<YOUR_OPENHAB_CLOUD_HOST>" ]
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.ga.entrypoints: websecure
traefik.http.routers.ga.rule: PathPrefix(`/`)
traefik.http.services.ga.loadbalancer.server.port: "3000"
traefik:
image: traefik:v2.2
restart: always
command:
- --api.insecure
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.websecure.address=:443
- --entrypoints.websecure.http.tls.certresolver=leresolver
- --entrypoints.websecure.http.tls.domains[0].main=<YOUR_SERVER_DOMAIN_NAME>
- --certificatesresolvers.leresolver.acme.email=<YOUR_EMAIL>
- --certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=web
- --certificatesresolvers.leresolver.acme.storage=/data/acme.json
# use staging server for testing
#- --certificatesresolvers.leresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory
#- --log.level=DEBUG
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- traefik:/data
- /var/run/docker.sock:/var/run/docker.sock
volumes:
traefik: