services:
  agent:
    build: .
    image: oleg-agent:latest
    container_name: oleg-agent
    hostname: oleg-agent
    restart: unless-stopped
    stdin_open: true
    tty: true
    environment:
      - GITEA_URL=http://git.dttb.ru
      - GITEA_USER=oleg
      - GITEA_PASS=OL260380eg
      - PROXMOX_URL=https://100.70.121.235:8006
      - NEXTCLOUD_URL=https://dttb.ru
      - CLAWDBOT_URL=http://100.70.219.93:3400
    volumes:
      - agent-data:/workspace
      - ./secrets:/secrets:ro
    # NetBird в host mode — агент видит всю mesh-сеть
    network_mode: host
    extra_hosts:
      - "git.dttb.ru:100.70.121.235"
      - "dttb.ru:100.70.121.235"

volumes:
  agent-data:
