aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yml
blob: 227fde04fec9fba72db5c6806ea0cb69318bfd3d (plain) (blame)
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
services:
  proxy:
    image: mitmproxy/mitmproxy
    entrypoint: ["mitmweb"]
    command: >
      --web-host 0.0.0.0
      --listen-port 9090
      -s /addons/capture.py
      --set confdir=/mitmproxy-data
    ports:
      - "8081:8080"
      - "9090:9090"
    volumes:
      - ./test/mitmproxy:/addons:ro
      - ./test/data:/mitmproxy-data
      - ./test/captures:/captures

  gemini-cli:
    build:
      context: .
      dockerfile: test/Dockerfile.gemini-cli
    depends_on:
      - proxy
    env_file: .env
    environment:
      - HTTP_PROXY=http://proxy:9090
      - HTTPS_PROXY=http://proxy:9090
      - TEST_PROMPT=${TEST_PROMPT:-Say hi in exactly 3 words}
    volumes:
      - ./test/data:/mitmproxy-ca:ro
      - ./test/captures:/captures
      - ./test/gemini-config:/gemini-settings:ro
    profiles:
      - cli

  gemini-py:
    build:
      context: .
      dockerfile: test/Dockerfile.gemini-py
    depends_on:
      - proxy
    env_file: .env
    environment:
      - HTTP_PROXY=http://proxy:9090
      - HTTPS_PROXY=http://proxy:9090
      - TEST_PROMPT=${TEST_PROMPT:-Say hi in exactly 3 words}
      - TEST_MODE=${TEST_MODE:-single}
      - CAPTURE_SOURCE=gemini-py
    volumes:
      - ./test/data:/mitmproxy-ca:ro
      - ./test/captures:/captures
    profiles:
      - py