Update .env with the following:
GO_WEB_INTERNAL_URL=http://host.docker.internal:3001
# To enable playwright console/network logs
DEBUG_PLAYWRIGHT=TrueImportant
A second instance of the go-web-app will run at port 3001 for Playwright.
Start or update containers with:
# In the background
docker compose up -d serve celery playwright
# In the foreground - Use this to view Playwright logs
docker compose up serve celery playwrightFor setup instructions, refer to: https://github.com/IFRCGo/go-web-app/?tab=readme-ov-file#local-development
We need two instances of the go-web-app:
- For the host system (browser) on port 3000.
- For playwright container on port 3001.
To start the regular go-web-app:
pnpm start:appFor the additional go-web-app instance for Playwright:
APP_API_ENDPOINT=http://host.docker.internal:8000/ pnpm start:app --host --port 3001Important
The backend will be available at host.docker.internal:8000 inside the Playwright container.