[+] add checks service
This commit is contained in:
		
							parent
							
								
									4152024ce7
								
							
						
					
					
						commit
						e4d38eb53d
					
				| @ -1,3 +1,4 @@ | |||||||
| * | * | ||||||
| .* | .* | ||||||
| !d1/blank-app-nginx.conf | !d1/blank-app-nginx.conf | ||||||
|  | !docker/checks | ||||||
|  | |||||||
							
								
								
									
										4
									
								
								.envs/checks.env
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										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 |       - ./tmp/d1/letsencrypt:/etc/letsencrypt:rw | ||||||
|     restart: on-failure |     restart: on-failure | ||||||
| 
 | 
 | ||||||
|  |   checks: | ||||||
|  |     build: | ||||||
|  |       context: . | ||||||
|  |       dockerfile: ./docker/checks/Dockerfile | ||||||
|  |     init: true | ||||||
|  |     env_file: | ||||||
|  |       .envs/checks.patched.env | ||||||
|  |      | ||||||
|   cpanel: |   cpanel: | ||||||
|     build: |     build: | ||||||
|       context: . |       context: . | ||||||
| @ -40,6 +48,7 @@ services: | |||||||
|       - ./d1/:/app/d1:ro |       - ./d1/:/app/d1:ro | ||||||
|       - ./tmp/d1/:/app/tmp/d1/:ro |       - ./tmp/d1/:/app/tmp/d1/:ro | ||||||
|     restart: on-failure |     restart: on-failure | ||||||
|  | 
 | ||||||
|   dynu: |   dynu: | ||||||
|     build: |     build: | ||||||
|       context: . |       context: . | ||||||
|  | |||||||
							
								
								
									
										8
									
								
								docker/checks/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										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
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										5
									
								
								docker/checks/rest.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | |||||||
|  | def main() -> None: | ||||||
|  |     raise NotImplementedError | ||||||
|  | 
 | ||||||
|  | if __name__ == '__main__': | ||||||
|  |     main() | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user