version: "3.8" services: app: build: context: .. dockerfile: .devcontainer/Dockerfile volumes: - ../..:/workspaces:cached - /workspaces/PfosiLooking-monorepo/app/node_modules - /workspaces/PfosiLooking-monorepo/backend/node_modules command: sleep infinity environment: - NODE_ENV=development - MONGODB_URI=mongodb://mongo:27017/urge - REACT_APP_API_URL=http://localhost:3069 - PORT=3069 - IONIC_PORT=8100 env_file: - dev.env networks: - dev-network depends_on: mongo: condition: service_healthy mongo: image: mongo:4.4 restart: unless-stopped environment: - MONGO_INITDB_DATABASE=urge - MONGO_INITDB_ROOT_USERNAME=admin - MONGO_INITDB_ROOT_PASSWORD=password ports: - "27017:27017" networks: - dev-network volumes: - mongo_data:/data/db - ../backend/data:/docker-entrypoint-initdb.d:ro healthcheck: test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/urge --quiet interval: 30s timeout: 10s retries: 3 start_period: 40s mongo-express: image: mongo-express:latest restart: unless-stopped environment: - ME_CONFIG_MONGODB_SERVER=mongo - ME_CONFIG_MONGODB_PORT=27017 - ME_CONFIG_MONGODB_ADMINUSERNAME=admin - ME_CONFIG_MONGODB_ADMINPASSWORD=password - ME_CONFIG_BASICAUTH_USERNAME=admin - ME_CONFIG_BASICAUTH_PASSWORD=password ports: - "8081:8081" networks: - dev-network depends_on: - mongo volumes: mongo_data: networks: dev-network: driver: bridge