services: haproxy-configurator: build: context: . dockerfile: Dockerfile container_name: haproxy-configurator restart: unless-stopped ports: - "15000:5000" - "80:80" - "443:443" - "8404:8404" volumes: - ./config:/app/config - ./haproxy:/etc/haproxy - ./logs:/var/log - ./ssl:/app/ssl 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: [intranet] networks: intranet: external: true