yt-dlp-dags/airflow/docker-compose.camoufox.yaml
2025-08-26 18:00:55 +03:00

48 lines
1.1 KiB
YAML

# THIS FILE IS AUTO-GENERATED BY generate_envoy_config.py
# DO NOT EDIT MANUALLY.
#
# It contains the service definitions for the camoufox instances
# and adds the necessary dependencies to the main services.
services:
camoufox-1:
image: ghcr.io/safing/camoufox:latest
container_name: ytdlp-ops-camoufox-1-1
restart: unless-stopped
ports:
- "12345:12345"
environment:
- DISPLAY=:99
- CAMOUFOX_MAX_MEMORY_MB=2048
- CAMOUFOX_MAX_CONCURRENT_CONTEXTS=8
- CAMOUFOX_RESTART_THRESHOLD_MB=1500
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- camoufox-data-1:/app/context-data
command: [
"--ws-host", "0.0.0.0",
"--port", "12345",
"--ws-path", "mypath",
"--headless",
"--monitor-resources",
"--memory-restart-threshold", "1800"
]
deploy:
resources:
limits:
memory: 2.5G
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
networks:
- camoufox-network
volumes:
camoufox-data-1:
networks:
camoufox-network:
driver: bridge