From 6060e19b315d7e4522753f1429c8bd61447bfca6 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 30 Dec 2025 11:39:32 -0500 Subject: [PATCH] feat: add docker-compose for integration testing --- docker-compose.test.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docker-compose.test.yaml diff --git a/docker-compose.test.yaml b/docker-compose.test.yaml new file mode 100644 index 0000000..8ea247f --- /dev/null +++ b/docker-compose.test.yaml @@ -0,0 +1,39 @@ +services: + grist-mcp: + build: . + ports: + - "3000:3000" + environment: + - CONFIG_PATH=/app/config.yaml + - GRIST_MCP_TOKEN=test-token + - PORT=3000 + volumes: + - ./tests/integration/config.test.yaml:/app/config.yaml:ro + depends_on: + mock-grist: + condition: service_started + networks: + - test-net + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3000/health')"] + interval: 5s + timeout: 5s + retries: 5 + + mock-grist: + build: tests/integration/mock_grist + ports: + - "8484:8484" + environment: + - PORT=8484 + networks: + - test-net + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8484/health')"] + interval: 5s + timeout: 5s + retries: 5 + +networks: + test-net: + driver: bridge