39 lines
1,011 B
YAML
39 lines
1,011 B
YAML
|
|
# CI-specific docker-compose file
|
||
|
|
# This provides a simplified interface for running the integration stack in Woodpecker CI
|
||
|
|
# Usage: docker-compose -f docker-compose.ci.yml up -d
|
||
|
|
|
||
|
|
version: "3.8"
|
||
|
|
|
||
|
|
services:
|
||
|
|
harb-stack:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: docker/Dockerfile.integration
|
||
|
|
privileged: true # Required for Docker-in-Docker
|
||
|
|
environment:
|
||
|
|
- HARB_ENV=BASE_SEPOLIA_LOCAL_FORK
|
||
|
|
- SKIP_WATCH=1
|
||
|
|
- COMPOSE_PROJECT_NAME=harb-ci
|
||
|
|
ports:
|
||
|
|
- "8081:8081" # Caddy (main API gateway)
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "curl", "-f", "http://localhost:8081/api/graphql"]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 30
|
||
|
|
start_period: 120s
|
||
|
|
volumes:
|
||
|
|
# Mount the workspace so changes are reflected (for local testing)
|
||
|
|
- .:/workspace:cached
|
||
|
|
# Persist Docker state within the container
|
||
|
|
- harb-ci-docker:/var/lib/docker
|
||
|
|
networks:
|
||
|
|
- harb-ci-network
|
||
|
|
|
||
|
|
networks:
|
||
|
|
harb-ci-network:
|
||
|
|
driver: bridge
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
harb-ci-docker:
|