File size: 1,515 Bytes
ea8c728 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | services:
# Run evolution on the circle_packing example
shinka-run:
build: .
image: shinka-evolve
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-}
volumes:
- .:/app
- ./results:/app/results
network_mode: host
# Default: circle_packing with small budget
# Override with: docker compose run shinka-run --task-dir examples/game_2048 ...
command: >
--task-dir examples/circle_packing
--results_dir results/circle_packing
--num_generations 5
--max-evaluation-jobs 2
# WebUI to monitor evolution results
webui:
build: .
image: shinka-evolve
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
volumes:
- .:/app
- ./results:/app/results
ports:
- "8888:8888"
entrypoint: ["shinka_visualize"]
command: ["--port", "8888"]
# Interactive shell for debugging
shell:
build: .
image: shinka-evolve
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
volumes:
- .:/app
- ./results:/app/results
network_mode: host
entrypoint: /bin/bash
stdin_open: true
tty: true
|