services: frontend: build: context: ./frontend container_name: theplug-frontend restart: unless-stopped environment: API_UPSTREAM: "host.docker.internal:${API_PORT:-3671}" ports: - "${FRONTEND_PORT:-5173}:80" extra_hosts: - "host.docker.internal:host-gateway" mongodb: image: mongo:8.2 container_name: theplug-mongodb restart: unless-stopped environment: MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-theplug} MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD:-theplug_dev_password} MONGO_INITDB_DATABASE: ${MONGO_DB:-theplug} ports: - "27017:27017" volumes: - theplug_mongodb:/data/db healthcheck: test: ["CMD-SHELL", "mongosh --quiet --username ${MONGO_USER:-theplug} --password ${MONGO_INITDB_ROOT_PASSWORD:-theplug_dev_password} --authenticationDatabase admin --eval \"db.adminCommand({ ping: 1 }).ok\" | grep 1"] interval: 10s timeout: 5s retries: 5 start_period: 10s volumes: theplug_mongodb: