services:
  socket-proxy:
    image: tecnativa/docker-socket-proxy:latest
    container_name: socket-proxy
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - CONTAINERS=1
      - IMAGES=1
      - NETWORKS=1
      - SERVICES=1
      - TASKS=1
      - INFO=1
      - PING=1
      - VERSION=1
      - POST=0
    networks:
      tan-network:
        ipv4_address: 10.10.0.180

  openclaw:
    image: ghcr.io/openclaw/openclaw:latest
    container_name: openclaw
    restart: unless-stopped
    depends_on:
      - socket-proxy
    network_mode: host
    volumes:
      - /home/docker/openclaw/data:/app/data
      - ./config:/app/config
    environment:
      - TZ=Europe/Paris
      - OPENCLAW_BASE_URL=https://claw.luckyden.org
      - DOCKER_HOST=tcp://127.0.0.1:2375

networks:
  tan-network:
    external: true