21 lines
691 B
YAML
21 lines
691 B
YAML
services:
|
|
api-server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: carcontrol-api
|
|
container_name: carcontrol-api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT:-8080}:8080"
|
|
environment:
|
|
# Container always listens on 8080; map the host port above.
|
|
PORT: "8080"
|
|
# External PocketBase instance (all DB access goes through this server).
|
|
PB_URL: "${PB_URL:-http://10.2.1.10:8027}"
|
|
PB_ADMIN_EMAIL: "${PB_ADMIN_EMAIL}"
|
|
PB_ADMIN_PASSWORD: "${PB_ADMIN_PASSWORD}"
|
|
CORS_ORIGINS: "${CORS_ORIGINS:-http://localhost:5173}"
|
|
AUTH_SECRET: "${AUTH_SECRET}"
|
|
AUTH_USERS_COLLECTION: "${AUTH_USERS_COLLECTION:-users}"
|