kv-tube/docker-compose.yml
2026-02-22 21:06:46 +07:00

38 lines
1,006 B
YAML
Executable file

# KV-Tube Docker Compose for Synology NAS
# Usage: docker-compose up -d
version: '3.8'
services:
kv-tube-backend:
image: git.khoavo.myds.me/vndangkhoa/kv-tube-backend:v4.0.1
container_name: kv-tube-backend
platform: linux/amd64
restart: unless-stopped
volumes:
- ./data:/app/data
environment:
- KVTUBE_DATA_DIR=/app/data
- GIN_MODE=release
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/api/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
labels:
- "com.centurylinklabs.watchtower.enable=true"
kv-tube-frontend:
image: git.khoavo.myds.me/vndangkhoa/kv-tube-frontend:v4.0.1
container_name: kv-tube-frontend
platform: linux/amd64
restart: unless-stopped
ports:
- "5011:3000"
environment:
- NEXT_PUBLIC_API_URL=http://kv-tube-backend:8080
depends_on:
- kv-tube-backend
labels:
- "com.centurylinklabs.watchtower.enable=true"