Skip to main content

Docker Configuration

Nenyax uses Docker Compose to orchestrate all services.

Two Modes

Services

Networking

Local dev — services connect to Docker containers via host ports: All-Docker — services communicate on the internal Docker network:
In all-Docker mode, the frontend uses two different API URLs:
  • INTERNAL_API_URL (http://backend:8000/api) — used by server components inside Docker
  • NEXT_PUBLIC_API_URL (http://localhost:4201/api) — used by client components in the browser
Do not remove INTERNAL_API_URL from docker-compose.yml — server components cannot reach localhost:4201 from inside the container.

Environment

No .env file is required for local dev or Docker dev. All compose files have defaults:
  • POSTGRES_PASSWORD defaults to nenyax
  • MINIO_ROOT_USER/PASSWORD defaults to minioadmin
  • BETTER_AUTH_SECRET defaults to authsecret123
Create a root .env only to override these (e.g., for production credentials).

Commands