version: "3.9" services: douyin_tiktok_download_api: image: git.khoavo.myds.me/vndangkhoa/kv-tiktok-download:v1 container_name: douyin_tiktok_download_api restart: always network_mode: bridge # Use bridge mode with explicit port mapping for better NAS compatibility ports: - "${HOST_PORT:-8456}:8456" volumes: # Mount configuration file - ./config.yaml:/app/config.yaml # Mount download directory to persist data - ./download:/app/download # (Optional) Mount log directory if the app writes logs to a specific file # - ./logs:/app/logs environment: - TZ=${TZ:-Asia/Ho_Chi_Minh} - PUID=${PUID:-1026} - PGID=${PGID:-100} # You can add other environment variables here if the app supports them # Set user/group to avoid permission issues if the container supports PUID/PGID internally # Note: If the app doesn't natively support PUID/PGID, # we might need to rely on the user running the container to set permissions on the volumes. # However, LinuxServer.io style containers use these env vars. # This specific app might not use them in its entrypoint, but it doesn't hurt to have them available. # Resource limits (optional, good for NAS) # deploy: # resources: # limits: # cpus: '0.50' # memory: 512M