kv-tiktok-download/docker-compose.yml
vndangkhoa c9aa05f333
Some checks failed
CodeQL / Analyze (push) Waiting to run
Translate README / build (push) Waiting to run
Publish Docker image / main (push) Failing after 0s
fix: remove build section from docker-compose for NAS pull-only deployment, update TZ
2026-02-20 20:28:02 +07:00

38 lines
1.3 KiB
YAML

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
# 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