-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
24 lines (24 loc) · 1.05 KB
/
docker-compose.override.yml
File metadata and controls
24 lines (24 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-License-Identifier: Apache-2.0
# Copyright 2026 Aaron K. Clark
#
# Local-only override for integration testing. Exposes Postgres on
# 127.0.0.1:5432 so the host-side vitest integration suite can reach
# it. NOT for production / shared environments — leaving 5432 open
# on a public host is a credential-brute-force invitation.
#
# This file IS committed (PR #56) as the canonical dev override —
# docker compose auto-loads docker-compose.override.yml whenever
# no explicit -f flags are passed, and shipping it in-tree means
# every contributor running `docker compose up` from the repo root
# gets a consistent integration-friendly bring-up. `.dockerignore`
# still excludes it from the runtime image build context so the
# host-only port binding never bakes into a deployed container.
#
# Production deployments use explicit -f files
# (`docker compose -f docker-compose.yml -f docker-compose.tls.yml ...`),
# which suppresses the auto-load and keeps this override out of the
# production network stack.
services:
postgres:
ports:
- "127.0.0.1:5432:5432"