[+] add checks service

This commit is contained in:
Siarhei Siniak 2025-08-25 12:41:38 +03:00
parent 4152024ce7
commit e4d38eb53d
5 changed files with 27 additions and 0 deletions

@ -1,3 +1,4 @@
*
.*
!d1/blank-app-nginx.conf
!docker/checks

4
.envs/checks.env Normal file

@ -0,0 +1,4 @@
# UVICORN_HOST=127.0.0.1
# UVICORN_PORT=80
# HTTP_AUTH_USERNAME=test
# HTTP_AUTH_PASSWORD=blah

@ -30,6 +30,14 @@ services:
- ./tmp/d1/letsencrypt:/etc/letsencrypt:rw
restart: on-failure
checks:
build:
context: .
dockerfile: ./docker/checks/Dockerfile
init: true
env_file:
.envs/checks.patched.env
cpanel:
build:
context: .
@ -40,6 +48,7 @@ services:
- ./d1/:/app/d1:ro
- ./tmp/d1/:/app/tmp/d1/:ro
restart: on-failure
dynu:
build:
context: .

8
docker/checks/Dockerfile Normal file

@ -0,0 +1,8 @@
FROM alpine@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099
WORKDIR /app
COPY ./docker/checks/rest.py ./docker/checks/rest.py
CMD ["python3", "docker/checks/rest.py"]

5
docker/checks/rest.py Normal file

@ -0,0 +1,5 @@
def main() -> None:
raise NotImplementedError
if __name__ == '__main__':
main()