Update Containers/Docker/Docker Compose/ChangeDetection.md
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
**Purpose**: Detect website content changes and perform meaningful actions - trigger notifications via Discord, Email, Slack, Telegram, API calls and many more.
|
**Purpose**: Detect website content changes and perform meaningful actions - trigger notifications via Discord, Email, Slack, Telegram, API calls and many more.
|
||||||
|
|
||||||
|
## Docker Configuration
|
||||||
```jsx title="docker-compose.yml"
|
```jsx title="docker-compose.yml"
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
@ -13,6 +14,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
restart: always
|
restart: always
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.changedetection.rule=Host(`changedetection.bunny-lab.io`)"
|
||||||
|
- "traefik.http.routers.changedetection.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.changedetection.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.http.services.changedetection.loadbalancer.server.port=3000"
|
||||||
networks:
|
networks:
|
||||||
docker_network:
|
docker_network:
|
||||||
ipv4_address: 192.168.5.49
|
ipv4_address: 192.168.5.49
|
||||||
@ -28,3 +35,25 @@ networks:
|
|||||||
```jsx title=".env"
|
```jsx title=".env"
|
||||||
N/A
|
N/A
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Traefik Reverse Proxy Configuration
|
||||||
|
If the container does not run on the same host as Traefik, you will need to manually add configuration to Traefik's dynamic config file, outlined below.
|
||||||
|
``` yaml
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
changedetection:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
certResolver: letsencrypt
|
||||||
|
http2:
|
||||||
|
service: changedetection
|
||||||
|
rule: Host(`changedetection.bunny-lab.io`)
|
||||||
|
|
||||||
|
services:
|
||||||
|
changedetection:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://192.168.5.49:5000
|
||||||
|
passHostHeader: true
|
||||||
|
```
|
Reference in New Issue
Block a user