mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
42 lines
779 B
YAML
42 lines
779 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
iptv-web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: iptv-web
|
|
|
|
# Volume for Hive data persistence
|
|
volumes:
|
|
- iptv_data:/app/data
|
|
|
|
# Use external nginx network
|
|
networks:
|
|
- nginx_default
|
|
|
|
# Environment variables
|
|
environment:
|
|
- HIVE_STORAGE_PATH=/app/data
|
|
|
|
# Restart policy
|
|
restart: unless-stopped
|
|
|
|
# Health check
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
# Named volume for Hive data persistence
|
|
volumes:
|
|
iptv_data:
|
|
driver: local
|
|
|
|
# External network (must exist before running)
|
|
networks:
|
|
nginx_default:
|
|
external: true
|