- Created test to verify homepage host validation issue - Identified that HOMEPAGE_ALLOWED_HOSTS environment variable was needed - Updated homepage Docker Compose with proper allowed hosts setting - Added 'localhost:4000,127.0.0.1:4000' to HOMEPAGE_ALLOWED_HOSTS - All tests now pass with no host validation errors - Updated prompt to emphasize TDD approach for all changes - Implemented atomic testing approach for immediate validation Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
services:
|
|
homepage:
|
|
image: gethomepage/homepage:latest
|
|
container_name: tsysdevstack-homepage
|
|
restart: unless-stopped
|
|
networks:
|
|
- tsysdevstack_supportstack_network
|
|
ports:
|
|
- "127.0.0.1:4000:3000"
|
|
environment:
|
|
- PORT=3000
|
|
- HOMEPAGE_URL=http://localhost:4000
|
|
- BASE_URL=http://localhost:4000
|
|
- HOMEPAGE_ALLOWED_HOSTS=localhost:4000,127.0.0.1:4000
|
|
volumes:
|
|
- ./config/homepage:/app/config
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro # For Docker integration
|
|
mem_limit: 256m
|
|
mem_reservation: 128m
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 256M
|
|
reservations:
|
|
cpus: '0.25'
|
|
memory: 128M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 60s # Longer start period for homepage
|
|
retries: 3
|
|
# Homepage integration labels for automatic discovery
|
|
labels:
|
|
homepage.group: "Support Stack"
|
|
homepage.name: "Homepage Dashboard"
|
|
homepage.icon: "homepage.png"
|
|
homepage.href: "http://127.0.0.1:4000"
|
|
homepage.description: "Homepage dashboard for Support Stack"
|
|
|
|
networks:
|
|
tsysdevstack_supportstack_network:
|
|
external: true
|
|
name: tsysdevstack_supportstack_network |