# Excel Filter Tool - Docker Compose Configuration
# For Coolify deployment

version: '3.8'

services:
  excel-filter:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: excel-filter-app
    restart: unless-stopped
    ports:
      - "8501:8501"
    environment:
      - TZ=Europe/Berlin
    volumes:
      # Optional: Persist temporary files
      - temp_data:/tmp
    networks:
      - excel-filter-network
    healthcheck:
      test: ["CMD", "curl", "--fail", "http://localhost:8501/_stcore/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s

volumes:
  temp_data:
    driver: local

networks:
  excel-filter-network:
    driver: bridge