The Forgejo runner is itself a container (visible in 'docker ps' from inside the job: GITEA-ACTIONS-TASK-N_WORKFLOW-Test_JOB-playwright). '--network host' for Mongo binds to the outer Docker host's network namespace, which the runner container can't see — that's why mongodb://localhost:27017 from the Nuxt server returned ECONNREFUSED. Drop --network host. Instead, after starting Mongo, look up the runner container's own network via 'docker inspect $HOSTNAME' and attach Mongo to it. MONGODB_URI now references the container by name (mongodb://mongo-ci:27017/...). |
||
|---|---|---|
| .. | ||
| workflows | ||