diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 0000000..9a732e9 --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,17 @@ +# Development compose file - builds from local source +# Usage: docker compose -f docker-compose.dev.yml up --build +services: + gitea-mcp: + build: . + container_name: gitea-mcp-dev + restart: "no" + ports: + - "8000:8000" + env_file: + - .env + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000/health"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 5s diff --git a/docker-compose.yml b/docker-compose.yml index e875e05..19311a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,13 @@ services: gitea-mcp: - build: . + image: gitea.ext.ben.io/b3nw/gitea-mcp:latest container_name: gitea-mcp restart: unless-stopped ports: - "8000:8000" - env_file: - - .env + environment: + - GITEA_URL=${GITEA_URL} + - GITEA_TOKEN=${GITEA_TOKEN} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s