mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
updates and reset-perm scripts
This commit is contained in:
1 parent
be6b08ceab
commit
3f4030fd96
22 files changed
+19
-1091
No files matched your search
@@ -1,15 +0,0 @@
|
||||
FROM python:3.12-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
COPY uptime-bot.py /app/uptime-bot.py
|
||||
COPY config.yml /app/config.yml
|
||||
COPY container-monitor-map.yaml /app/container-monitor-map.yaml
|
||||
|
||||
ENV UPTIME_BOT_CONFIG=/app/config.yml
|
||||
ENV UPTIME_BOT_MAP=/app/container-monitor-map.yaml
|
||||
|
||||
CMD ["python", "/app/uptime-bot.py"]
|
||||
@@ -1,14 +0,0 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
watchtower-with-uptime-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: watchtower-embedded/Dockerfile.watchtower-with-uptime-bot
|
||||
container_name: watchtower-with-uptime-bot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./config.yml:/opt/uptime-bot/config.yml:ro
|
||||
- ./container-monitor-map.yaml:/opt/uptime-bot/container-monitor-map.yaml:ro
|
||||
command: --interval 300 --cleanup
|
||||
@@ -1,23 +0,0 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower:latest
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 300 --cleanup
|
||||
|
||||
uptime-sync-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: uptime-sync-bot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./config.yml:/app/config.yml:ro
|
||||
- ./container-monitor-map.yaml:/app/container-monitor-map.yaml:ro
|
||||
environment:
|
||||
- UPTIME_BOT_CONFIG=/app/config.yml
|
||||
- UPTIME_BOT_MAP=/app/container-monitor-map.yaml
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
FROM containrrr/watchtower:latest
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk add --no-cache python3 py3-pip
|
||||
|
||||
WORKDIR /opt/uptime-bot
|
||||
|
||||
COPY requirements.txt /opt/uptime-bot/requirements.txt
|
||||
RUN pip3 install --no-cache-dir -r /opt/uptime-bot/requirements.txt
|
||||
|
||||
COPY uptime-bot.py /opt/uptime-bot/uptime-bot.py
|
||||
COPY config.yml /opt/uptime-bot/config.yml
|
||||
COPY container-monitor-map.yaml /opt/uptime-bot/container-monitor-map.yaml
|
||||
COPY watchtower-embedded/start-watchtower-with-uptime-bot.sh /usr/local/bin/start-watchtower-with-uptime-bot.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/start-watchtower-with-uptime-bot.sh
|
||||
|
||||
ENV UPTIME_BOT_CONFIG=/opt/uptime-bot/config.yml
|
||||
ENV UPTIME_BOT_MAP=/opt/uptime-bot/container-monitor-map.yaml
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/start-watchtower-with-uptime-bot.sh"]
|
||||
CMD ["--interval", "300", "--cleanup"]
|
||||
Reference in new issue
Block a user