services:
  mysql:
    image: mysql:8.0
    container_name: agent-mysql
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: agent_root_password
      MYSQL_DATABASE: agent_db
      MYSQL_USER: agent
      MYSQL_PASSWORD: agent_password
    ports:
      - "3306:3306"
    volumes:
      - agent_mysql_data:/var/lib/mysql
    command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci

  minio:
    image: minio/minio:latest
    container_name: agent-minio
    restart: unless-stopped
    environment:
      MINIO_ROOT_USER: minioadmin
      MINIO_ROOT_PASSWORD: minioadmin123
    command: server /data --console-address ":9001"
    ports:
      - "9000:9000"
      - "9001:9001"
    volumes:
      - agent_minio_data:/data

volumes:
  agent_mysql_data:
  agent_minio_data:
