31 lines
No EOL
813 B
YAML
31 lines
No EOL
813 B
YAML
services:
|
|
kv-tube:
|
|
# Pull from Docker Hub (recommended)
|
|
image: vndangkhoa/kv-tube:latest
|
|
|
|
# Or build locally (uncomment to use instead)
|
|
# build:
|
|
# context: .
|
|
# dockerfile: Dockerfile
|
|
|
|
container_name: kv-tube
|
|
platform: linux/amd64
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "5011:3000" # Frontend (Next.js)
|
|
- "8981:8080" # Backend API (Go)
|
|
|
|
volumes:
|
|
- ./data:/app/data
|
|
|
|
environment:
|
|
- KVTUBE_DATA_DIR=/app/data
|
|
- GIN_MODE=release
|
|
- NODE_ENV=production
|
|
# CORS - replace with your actual domain(s)
|
|
# Example: https://kv-tube.example.com,http://localhost:5011
|
|
- CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:5011
|
|
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=true" |