mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
20 lines
583 B
YAML
20 lines
583 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://mongodb:27017/freecodecamp?replicaSet=rs0
|
|
- MAILPIT_HOST=mailpit
|
|
- HOST=0.0.0.0
|
|
ports:
|
|
- '3000:3000'
|