This commit is contained in:
parent
3becc75947
commit
e73e9364cd
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
/data/
|
/data/
|
||||||
|
|
||||||
/.vscode
|
/.vscode
|
||||||
/.sass-cache
|
/.sass-cache
|
||||||
/node_modules/
|
/node_modules/
|
||||||
|
7
Makefile
7
Makefile
@ -1,9 +1,10 @@
|
|||||||
|
deploy: build
|
||||||
|
docker rm -f uechi.io uechi.io-cron
|
||||||
|
docker-compose -f docker-compose.production.yml up -d
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker-compose build --pull
|
docker-compose build --pull
|
||||||
|
|
||||||
push:
|
push:
|
||||||
docker-compose push
|
docker-compose push
|
||||||
|
|
||||||
deploy: build
|
|
||||||
docker rm -f uechi.io
|
|
||||||
docker-compose -f docker-compose.production.yml up -d
|
|
||||||
|
@ -9,7 +9,17 @@ services:
|
|||||||
VIRTUAL_HOST: uechi.io
|
VIRTUAL_HOST: uechi.io
|
||||||
LETSENCRYPT_HOST: uechi.io
|
LETSENCRYPT_HOST: uechi.io
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/var/www/html/★/:ro"
|
- "./data:/var/www/html/_:ro"
|
||||||
|
labels:
|
||||||
|
com.centurylinklabs.watchtower.enable: "true"
|
||||||
|
cron:
|
||||||
|
image: ghcr.io/uetchy/uechi.io
|
||||||
|
command: /usr/sbin/crond -d 8 -f
|
||||||
|
restart: unless-stopped
|
||||||
|
container_name: uechi.io-cron
|
||||||
|
volumes:
|
||||||
|
- "./data:/var/www/html/_"
|
||||||
|
- "./periodic/daily:/etc/periodic/daily:ro"
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: "true"
|
com.centurylinklabs.watchtower.enable: "true"
|
||||||
|
|
||||||
|
6
periodic/daily/280blocker
Executable file
6
periodic/daily/280blocker
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Updating 280blocker filter..."
|
||||||
|
|
||||||
|
FILTER_PATH="/var/www/html/_/280blocker.txt"
|
||||||
|
curl -sL "https://280blocker.net/files/280blocker_adblock_$(date +"%Y%m").txt" -o "$FILTER_PATH"
|
Loading…
x
Reference in New Issue
Block a user