version: "3.9" # Mardonar Encounter Engine # # docker compose up -d --build # 1. Builds the image # 2. Runs deploy-commands (registers slash commands with Discord) # 3. Starts the bot # # Joins the knowledge-graph-ai_internal network so it can reach: # redis → redis://redis:6379 # mcp-server → http://mcp-server:9000 # Both containers live in the GraphMCP-Example stack — start that first. networks: mardonar-internal: external: true services: deploy-commands: build: . container_name: mardonar-deploy-commands restart: "no" env_file: .env networks: - mardonar-internal command: ["node", "dist/scripts/deploy-commands.js"] bot: build: . container_name: mardonar-bot restart: unless-stopped env_file: .env networks: - mardonar-internal volumes: - ./data:/app/data depends_on: deploy-commands: condition: service_completed_successfully