Added webcontrol API
This commit is contained in:
1 parent
a13f099e14
commit
ce6b363d4e
11 files changed
+154
-15
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
mqtt:
|
||||
host: 192.168.0.6
|
||||
host: mqtt
|
||||
user: '{FRIGATE_MQTT_USERNAME}'
|
||||
password: '{FRIGATE_MQTT_PASSWORD}'
|
||||
|
||||
|
||||
@@ -45,7 +45,9 @@ services:
|
||||
# networks:
|
||||
# - frigate
|
||||
ports:
|
||||
- 127.0.0.1:5000:5000
|
||||
- 127.0.0.1:10000:5000
|
||||
extra_hosts:
|
||||
- mqtt:192.168.0.6
|
||||
notify:
|
||||
container_name: frigate-notify
|
||||
image: frigate-notify:latest
|
||||
@@ -63,6 +65,32 @@ services:
|
||||
source: /etc/localtime
|
||||
target: /etc/localtime
|
||||
read_only: true
|
||||
extra_hosts:
|
||||
- mqtt:192.168.0.6
|
||||
webcontrol:
|
||||
container_name: frigate-webcontrol
|
||||
image: frigate-webcontrol:latest
|
||||
labels:
|
||||
autoheal: 'true'
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: curl -s -f http://localhost -o /dev/null
|
||||
interval: 60s
|
||||
retries: 1
|
||||
start_period: 30s
|
||||
timeout: 30s
|
||||
environment:
|
||||
MQTT_USERNAME: frigate
|
||||
MQTT_PASSWORD: ${MQTT_PASSWORD}
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /etc/localtime
|
||||
target: /etc/localtime
|
||||
read_only: true
|
||||
ports:
|
||||
- 127.0.0.1:10001:80
|
||||
extra_hosts:
|
||||
- mqtt:192.168.0.6
|
||||
# mqtt:
|
||||
# container_name: mqtt
|
||||
# image: eclipse-mosquitto:latest
|
||||
|
||||
+5
-1
@@ -6,9 +6,13 @@ server {
|
||||
ssl_certificate_key "/certs/homelab.net/homelab.net.key";
|
||||
|
||||
location / {
|
||||
proxy_pass "http://localhost:5000/";
|
||||
proxy_pass "http://localhost:10000/";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location /webcontrol/ {
|
||||
proxy_pass "http://localhost:10001/";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user