This commit is contained in:
commit
6ec009dac8
20
.woodpecker.yaml
Normal file
20
.woodpecker.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
variables:
|
||||||
|
- &app_name "change-detection"
|
||||||
|
|
||||||
|
when:
|
||||||
|
event: [push]
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
deploy:
|
||||||
|
image: docker:28-cli
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /home/george:/home/george
|
||||||
|
environment:
|
||||||
|
APP_NAME: *app_name
|
||||||
|
commands:
|
||||||
|
- mkdir -p /home/george/$APP_NAME
|
||||||
|
- cp -r . /home/george/$APP_NAME/
|
||||||
|
- docker compose -p $APP_NAME -f /home/george/$APP_NAME/docker-compose.yaml up -d --pull always --force-recreate
|
||||||
18
docker-compose.yaml
Normal file
18
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
services:
|
||||||
|
changedetection:
|
||||||
|
image: lscr.io/linuxserver/changedetection.io:latest
|
||||||
|
container_name: changedetection
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=Europe/Copenhagen
|
||||||
|
- BASE_URL=https://alerts.georgew.dev
|
||||||
|
volumes:
|
||||||
|
- ./changedetection_config:/config
|
||||||
|
networks:
|
||||||
|
- web_traffic
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
web_traffic:
|
||||||
|
external: true
|
||||||
Loading…
Reference in a new issue