version: '3.8' services: dev: build: context: . dockerfile: Dockerfile volumes: - ../:/workspace:cached command: sleep infinity depends_on: redis: condition: service_healthy mongo: condition: service_healthy environment: - CELERY_BROKER_URL=redis://redis:6379/0 - CELERY_RESULT_BACKEND=redis://redis:6379/1 - MONGO_URI=mongodb://mongo:27017/docsgpt - CACHE_REDIS_URL=redis://redis:6379/2 networks: - default redis: healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 30s retries: 5 mongo: healthcheck: test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"] interval: 5s timeout: 30s retries: 5 networks: default: name: docsgpt-dev-network