- Created a new login page for admin access at frontend/admin/login/index.html. - Implemented form submission with error handling for login credentials. - Updated frontend/index.html to mute the video player and removed unnecessary Alpine.js data binding. - Enhanced manifest URL resolution in frontend/src/main.ts to include cache-busting parameters. - Modified vite.config.ts to include the new admin login page in the build process. - Updated nginx.conf to handle admin login routing, authentication, and API proxying for admin actions.
146 lines
3.5 KiB
YAML
146 lines
3.5 KiB
YAML
services:
|
|
playout:
|
|
image: git.allucanget.biz/zwitschi/linearvoid/playout:latest
|
|
container_name: linearvoid-playout
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./data/playlist:/app/playlist:ro
|
|
- ./data/media:/app/media:ro
|
|
- ./data/hls:/app/hls:rw
|
|
networks:
|
|
- linearvoid-net
|
|
depends_on:
|
|
- redis
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
chat:
|
|
image: git.allucanget.biz/zwitschi/linearvoid/chat:latest
|
|
container_name: linearvoid-chat
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "${CHAT_PORT:-3000}:3000"
|
|
volumes:
|
|
- ./data/chat:/app:rw
|
|
- ./data/playlist:/app/playlist:rw
|
|
- ./data/media:/app/media:rw
|
|
networks:
|
|
- linearvoid-net
|
|
depends_on:
|
|
- redis
|
|
- db
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
nginx:
|
|
image: git.allucanget.biz/zwitschi/linearvoid/nginx:latest
|
|
container_name: linearvoid-nginx
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${NGINX_PORT:-8080}:80"
|
|
volumes:
|
|
- ./data/hls:/srv/hls:ro
|
|
networks:
|
|
- linearvoid-net
|
|
depends_on:
|
|
- playout
|
|
- chat
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: linearvoid-redis
|
|
restart: unless-stopped
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- redis-data:/data
|
|
networks:
|
|
- linearvoid-net
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: linearvoid-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: linearvoid
|
|
POSTGRES_USER: linearvoid
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-linearvoid}
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
networks:
|
|
- linearvoid-net
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U linearvoid"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: linearvoid-prometheus
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- prometheus-data:/prometheus
|
|
ports:
|
|
- "9090:9090"
|
|
networks:
|
|
- linearvoid-net
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/prometheus"
|
|
- "--web.console.libraries=/etc/prometheus/console_libraries"
|
|
- "--web.console.templates=/etc/prometheus/consoles"
|
|
- "--web.enable-lifecycle"
|
|
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
container_name: linearvoid-grafana
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3001:3000"
|
|
volumes:
|
|
- grafana-data:/var/lib/grafana
|
|
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards
|
|
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
|
|
- GF_USERS_ALLOW_SIGN_UP=false
|
|
networks:
|
|
- linearvoid-net
|
|
depends_on:
|
|
- prometheus
|
|
|
|
networks:
|
|
linearvoid-net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
redis-data:
|
|
postgres-data:
|
|
prometheus-data:
|
|
grafana-data:
|