42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
douyin_tiktok_download_api:
|
|
# Build from the current directory
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
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/Shanghai}
|
|
- 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
|