first commit

This commit is contained in:
Mateusz Gruszczyński
2025-11-01 19:15:49 +01:00
commit 1111d59c2b
23 changed files with 2562 additions and 0 deletions

42
docker-compose.yml Normal file
View File

@@ -0,0 +1,42 @@
version: '3.9'
services:
haproxy-configurator:
build:
context: .
dockerfile: Dockerfile
container_name: haproxy-configurator
restart: unless-stopped
ports:
- "15000:5000"
- "7780:80"
- "7443:443"
- "8404:8404"
volumes:
- ./config:/app/config
- ./haproxy:/etc/haproxy
- ./logs:/var/log
environment:
- FLASK_ENV=production
- FLASK_APP=app.py
- PYTHONUNBUFFERED=1
cap_add:
- NET_ADMIN
- SYS_ADMIN
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- haproxy-net
networks:
haproxy-net:
driver: bridge