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.
20 lines
771 B
YAML
20 lines
771 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
|
|
env_file: apps/hq/.env
|
|
# 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"
|