freeCodeCamp/docker/docker-compose.e2e.yml
Mrugesh Mohapatra 3cbe2ab8b1
Some checks failed
i18n - Build Validation / Validate i18n Builds (22) (push) Has been cancelled
CI - Node.js / Lint (22) (push) Has been cancelled
CI - Node.js / Build (22) (push) Has been cancelled
CI - Node.js / Test (22) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (22) (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, dev) (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, org) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
i18n - Upload Client UI / Client (push) Has been cancelled
i18n - Upload Curriculum / Learn (push) Has been cancelled
fix(tools): consolidate docker compose setup (#62525)
2025-10-07 10:49:41 +05:30

20 lines
585 B
YAML

# Docker Compose override for E2E testing
# Usage: docker compose -f docker/docker-compose.yml -f docker/docker-compose.e2e.yml up -d
services:
api:
restart: unless-stopped
depends_on:
- db
- mailpit
image: fcc-api
env_file:
- ../.env
environment:
# The api cannot connect to mongodb or mailpit via localhost from inside the
# container, so we have to override these variables.
- MONGOHQ_URL=mongodb://db:27017/freecodecamp?directConnection=true
- MAILHOG_HOST=mailpit
- HOST=0.0.0.0
ports:
- '3000:3000'