- Map host 8122 to api container for reverse proxy at momswap.produktor.duckdns.org - Remove buildx cache_from/cache_to to allow docker build on default driver - Document reverse proxy setup in frontend integration guide - Update README with port mapping notes - bun.lock: add deps from bun install for geo-api-client Made-with: Cursor
This commit is contained in:
@@ -56,9 +56,9 @@ COMPOSE_BAKE=true docker compose --profile dev up --watch
|
||||
|
||||
Notes:
|
||||
|
||||
- `api` service listens on `8122` inside the container, mapped to host `8122` (reverse proxy at `https://momswap.produktor.duckdns.org`).
|
||||
- `api` service uses the production `runtime` image target.
|
||||
- `api-dev` profile uses the `dev` image target and Docker Compose watch.
|
||||
- Build cache is persisted at `.docker/buildx-cache` via `cache_from`/`cache_to`.
|
||||
- DB defaults can be overridden via `POSTGRES_DB`, `POSTGRES_USER`, `POSTGRES_PASSWORD`.
|
||||
|
||||
## Frontend
|
||||
|
||||
@@ -21,10 +21,6 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: runtime
|
||||
cache_from:
|
||||
- type=local,src=.docker/buildx-cache
|
||||
cache_to:
|
||||
- type=local,dest=.docker/buildx-cache,mode=max
|
||||
image: momswap-backend:latest
|
||||
container_name: momswap-backend-api
|
||||
environment:
|
||||
@@ -44,10 +40,6 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: dev
|
||||
cache_from:
|
||||
- type=local,src=.docker/buildx-cache
|
||||
cache_to:
|
||||
- type=local,dest=.docker/buildx-cache,mode=max
|
||||
image: momswap-backend:dev
|
||||
container_name: momswap-backend-api-dev
|
||||
environment:
|
||||
|
||||
@@ -6,6 +6,8 @@ Primary backend URL for integration:
|
||||
|
||||
- `https://momswap.produktor.duckdns.org/`
|
||||
|
||||
Deployment: API is proxied via reverse proxy from `https://momswap.produktor.duckdns.org` to backend at `172.17.0.1:8122`. Docker Compose maps port 8122 for the reverse proxy.
|
||||
|
||||
## Goals
|
||||
|
||||
- Keep cryptographic signing logic in one place.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"lockfileVersion": 1,
|
||||
"configVersion": 0,
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "@momswap/geo-api-client",
|
||||
|
||||
Reference in New Issue
Block a user