Docker Local Stack
Docker & Local Environment
Section titled “Docker & Local Environment”Seamless Auth uses Docker to make the local stack predictable and close to deployment reality.
This page explains the generated local environment and how the services talk to each other.
Mental Model
Section titled “Mental Model”docker compose up -> starts the stack -> wires service-to-service hostnames -> exposes the local URLs you interact withTypical Local Services
Section titled “Typical Local Services”The generated docker-compose.yml usually includes:
services: db auth api web admin # optionalWhether admin is present depends on your CLI choices.
Service Summary
Section titled “Service Summary”| Service | Local URL | Purpose |
|---|---|---|
db | localhost:5432 | Postgres persistence |
auth | http://localhost:5312 | Auth engine |
api | http://localhost:3000 | Application/backend layer |
web | http://localhost:5173 | Frontend app |
admin | http://localhost:5174 | Admin dashboard |
Auth Service Modes
Section titled “Auth Service Modes”The generated stack supports two main auth shapes.
Docker image mode
Section titled “Docker image mode”The auth service runs from:
image: ghcr.io/fells-code/seamless-auth-api:latestLocal source mode
Section titled “Local source mode”The auth service is generated into ./auth and the compose file builds it with Dockerfile.dev.
That mode is useful when you want to inspect or modify the auth server locally.
Admin Dashboard Modes
Section titled “Admin Dashboard Modes”If the dashboard is included, it can be wired in two ways.
Image mode
Section titled “Image mode”image: ghcr.io/fells-code/seamless-auth-admin-dashboard:latestSource mode
Section titled “Source mode”build: ./adminSource mode is the path to choose if you want to customize the dashboard app itself.
How Services Communicate
Section titled “How Services Communicate”Inside Docker, containers talk to each other by service name.
Examples:
| From | To | Internal address |
|---|---|---|
| API | Auth | http://auth:5312 |
| API | DB | db |
| Web | API | http://localhost:3000 |
| Admin | API | http://localhost:3000 |
For the route map and env details behind this, see:
Starting The Stack
Section titled “Starting The Stack”From the project root:
docker compose upThat will:
- start Postgres
- start the auth server
- start the backend API
- start the web app
- start the admin dashboard when included
Useful Commands
Section titled “Useful Commands”View logs:
docker compose logs -fRebuild and restart:
docker compose downdocker compose up --buildInspect running containers:
docker psCommon Issues
Section titled “Common Issues”Port conflicts
Section titled “Port conflicts”Watch for conflicts on:
54323000517351745312
Missing source directories
Section titled “Missing source directories”If you chose source-based modes, confirm that:
./authexists for local auth mode./adminexists for admin source mode
Wrong internal URL
Section titled “Wrong internal URL”Inside the container network, the API should talk to the auth service as:
http://auth:5312Not http://localhost:5312.
What This Page Is For
Section titled “What This Page Is For”Use this page when the local stack itself is the problem.
Use these related docs when you need more specific detail: