You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
936 B
YAML
21 lines
936 B
YAML
# SiMS HQ console — one service. Postgres lives in the separate, shared
|
|
# `accurate-postgres` container; HQ reaches it via host.docker.internal (that container
|
|
# publishes 5432 on the host), so nothing about accurate-postgres changes.
|
|
# Bring up: sudo docker compose up -d --build
|
|
# Logs: sudo docker logs sims-hq
|
|
# Restart: sudo docker compose restart hq
|
|
services:
|
|
hq:
|
|
build: .
|
|
image: sims-hq
|
|
container_name: sims-hq
|
|
restart: unless-stopped
|
|
# No env_file: DB connection + owner email are hardcoded in the app (server.ts / seed.ts),
|
|
# matching the box's other apps. NODE_ENV=production (set in the Dockerfile) activates them.
|
|
# Bind only to localhost — the host nginx terminates TLS and proxies here.
|
|
ports:
|
|
- "127.0.0.1:5182:5182"
|
|
# Lets DATABASE_URL use host.docker.internal:5432 to reach accurate-postgres.
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|