Files
bom-local-card/docker-compose.test.yml
T
alex d49228d671 Initial commit: BOM Local Radar Card
- Custom Home Assistant card for displaying BOM radar data
- Docker-based build system (no local Node.js required)
- Test environment with Home Assistant and BOM service
- TypeScript source with LitElement framework
- HACS integration ready
2025-12-16 19:51:16 +10:00

50 lines
1.5 KiB
YAML

services:
# BOM Local Service - provides radar data (using pre-built image)
bom-local-service:
image: ghcr.io/alexhopeoconnor/bom-local-service:latest
container_name: bom-card-test-service
ports:
- "8082:8080"
environment:
# ASP.NET Core configuration
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080
# Virtual display for non-headless browser
- DISPLAY=:99
# CORS - allow requests from HA test instance (both container name and localhost)
- CORS__ALLOWEDORIGINS=http://homeassistant:8123,http://localhost:8124,http://127.0.0.1:8124
- CORS__ALLOWEDMETHODS=GET,POST,OPTIONS
- CORS__ALLOWEDHEADERS=*
- CORS__ALLOWCREDENTIALS=false
# Application configuration
- CACHEDIRECTORY=/app/cache
- CACHERETENTIONHOURS=24
- TIMEZONE=Australia/Brisbane
shm_size: '1gb'
ipc: host
restart: unless-stopped
networks:
- bom-test-network
# Home Assistant test instance
# HA runs as root (default) - we fix file permissions after it creates files
homeassistant:
container_name: bom-card-test-ha
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
# Mount HA config directory
- ./test-ha/config:/config
environment:
- TZ=Australia/Brisbane
restart: unless-stopped
ports:
- "8124:8123" # Use 8124 to avoid conflicts with main HA instance
depends_on:
- bom-local-service
networks:
- bom-test-network
networks:
bom-test-network:
driver: bridge