Update .env
with the following:
GO_WEB_INTERNAL_URL=http://host.docker.internal:3001
# To enable playwright console/network logs
DEBUG_PLAYWRIGHT=True
Important
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
# In the foreground - Use this to view Playwright logs
docker compose up serve celery
For 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 Celery workers (Playwright browser) on port 3001.
To start the regular go-web-app:
pnpm start:app
For the additional go-web-app instance for Playwright:
APP_API_ENDPOINT=http://host.docker.internal:8000/ pnpm start:app --host --port 3001
Important
The backend will be available at host.docker.internal:8000
inside the Playwright container running within Celery.