services:
  filament_admin:
    build: .
    container_name: filament_admin
    command: php artisan serve --host=0.0.0.0 --port=8000
    ports:
      - "5019:8000"
    env_file:
      - .env
    volumes:
      # 持久化存储
      - ./storage:/app/storage
      - ./database:/app/database
    networks:
      - default
      - laradock_backend
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "php artisan --version || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s

networks:
  default:
    driver: bridge
  laradock_backend:
    external: true
