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