services:
  gateway:
    build: .
    container_name: gravity-gateway
    restart: unless-stopped
    ports:
      - "127.0.0.1:8585:8585"
    env_file:
      - .env
    environment:
      - BOT_MODE=gateway
      - GATEWAY_PORT=8585
      - BRAIN_PATH=/app/data/brain
    volumes:
      - gateway-data:/app/data
    networks:
      - default
      - proxy-net
    logging:
      driver: json-file
      options:
        max-size: 10m
        max-file: 3

volumes:
  gateway-data:

networks:
  proxy-net:
    external: true
