version: '3.8' services: ci-cd-dind: image: docker:dind container_name: ci-cd-dind privileged: true restart: unless-stopped ports: - "2376:2376" volumes: - ci-cd-data:/var/lib/docker - /var/run/docker.sock:/var/run/docker.sock - ./backend:/workspace/backend - ./frontend:/workspace/frontend - ./scripts:/workspace/scripts environment: - DOCKER_TLS_CERTDIR=/certs healthcheck: test: ["CMD", "docker", "version"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: ci-cd-data: driver: local