Public Access
1
0

chore: expose docker services on host ports

This commit is contained in:
pguerrerox
2026-05-05 23:04:06 +00:00
parent ecb3310216
commit d4bce92872
4 changed files with 17 additions and 12 deletions
+11 -8
View File
@@ -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