neiros
version: '3.8' services: invoice-manager: build: . container_name: tilda-invoice-manager ports: - "5000:5000" environment: - TILDA_API_ID=${TILDA_API_ID} - TILDA_API_TOKEN=${TILDA_API_TOKEN} - FLASK_ENV=production - SECRET_KEY=${SECRET_KEY} volumes: - ./logs:/app/logs restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/"] interval: 30s timeout: 10s retries: 3 start_period: 5s # Для production используйте nginx в качестве reverse proxy # networks: # - frontend # labels: # - "com.example.description=Tilda Invoice Manager" # Опционально: Nginx reverse proxy для production # nginx: # image: nginx:latest # container_name: invoice-manager-nginx # ports: # - "80:80" # - "443:443" # volumes: # - ./nginx.conf:/etc/nginx/nginx.conf:ro # - ./certs:/etc/nginx/certs:ro # depends_on: # - invoice-manager # networks: # - frontend # restart: unless-stopped # networks: # frontend: # driver: bridge volumes: logs: driver: local