chore: expose docker services on host ports
This commit is contained in:
@@ -38,18 +38,21 @@ If you open the app from another machine on your LAN, set `VITE_API_BASE_URL` an
|
||||
## Docker Deployment
|
||||
|
||||
1. Copy `.env.example` to `.env` and set at least:
|
||||
- `DATABASE_URL` to the Compose database host, for example `postgres://postgres:YOUR_PASSWORD@db:5432/leads4less`
|
||||
- `POSTGRES_DB`
|
||||
- `POSTGRES_USER`
|
||||
- `POSTGRES_PASSWORD`
|
||||
- `COOKIE_SECRET`
|
||||
- `GOOGLE_MAPS_SERVER_KEY`
|
||||
- `VITE_API_BASE_URL`
|
||||
- `VITE_GOOGLE_MAPS_PLATFORM_KEY`
|
||||
- `DATABASE_URL` to the Compose database host, for example `postgres://postgres:YOUR_PASSWORD@db:5432/leads4less`
|
||||
- `POSTGRES_DB`
|
||||
- `POSTGRES_USER`
|
||||
- `POSTGRES_PASSWORD`
|
||||
- `WEB_PORT`
|
||||
- `APP_PORT`
|
||||
- `COOKIE_SECRET`
|
||||
- `GOOGLE_MAPS_SERVER_KEY`
|
||||
- `VITE_API_BASE_URL`
|
||||
- `VITE_GOOGLE_MAPS_PLATFORM_KEY`
|
||||
2. Build and start the full stack:
|
||||
`docker compose up --build`
|
||||
|
||||
The Compose stack starts PostGIS, waits for the database to become healthy, runs migrations automatically, and then starts the API, worker, and web containers.
|
||||
With the default `.env.example` values, the app is exposed on `http://localhost:3000` and the API on `http://localhost:4000`.
|
||||
|
||||
## Database Layout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user