47 lines
2.3 KiB
YAML
47 lines
2.3 KiB
YAML
# Template for docker-compose.prod.override.yml, the host-specific patch layered on top of
|
|
# docker-compose.prod.yml via ./run-prod.sh (or `docker compose -f docker-compose.prod.yml
|
|
# -f docker-compose.prod.override.yml ...`).
|
|
#
|
|
# Copy this file to docker-compose.prod.override.yml next to docker-compose.prod.yml on the
|
|
# target host and keep only the services/keys that actually need to differ from the base.
|
|
# docker-compose.prod.override.yml is gitignored on purpose: it holds host-specific choices
|
|
# (storage layout, resource limits), not something the repo should carry or `git pull` should
|
|
# ever touch.
|
|
#
|
|
# Compose merge rules used below (see https://github.com/compose-spec/compose-spec/blob/master/13-merge.md):
|
|
# - environment (map syntax) merges key by key: only list the keys you're changing.
|
|
# - volumes merges by target path: only list the mount(s) you're changing, others are untouched.
|
|
# - !reset fully removes an attribute the base sets, instead of merging into it.
|
|
# - !override fully replaces an attribute instead of merging into it (e.g. to drop specific
|
|
# environment keys the base defines, since map-merge can only add/change keys, not remove them).
|
|
|
|
services:
|
|
# Example: swap a named volume for a bind mount, only for the one mount that needs to change.
|
|
# express:
|
|
# volumes:
|
|
# - /data/term_portal/express_data:/usr/src/app/data_files
|
|
|
|
# Example: override a single environment key, leaving the rest of the base's map untouched.
|
|
# opensearch:
|
|
# environment:
|
|
# OPENSEARCH_JAVA_OPTS: "-Xms2048m -Xmx2048m"
|
|
|
|
# Example: this host can't grant memlock/nofile ulimits (e.g. a constrained VPS) - drop the
|
|
# attribute entirely rather than trying to merge different values into it.
|
|
# opensearch:
|
|
# ulimits: !reset null
|
|
|
|
# Example: drop specific keys from a map the base defines, by replacing the whole map instead
|
|
# of merging into it (plain map-merge can only add/override keys, never remove them).
|
|
# opensearch:
|
|
# environment: !override
|
|
# cluster.name: term-portal
|
|
# node.name: node-1
|
|
# DISABLE_INSTALL_DEMO_CONFIG: "true"
|
|
# DISABLE_SECURITY_PLUGIN: "true"
|
|
# discovery.type: single-node
|
|
|
|
# Example: if every named volume the base declares has been replaced by bind mounts above,
|
|
# drop the now-unused top-level declarations explicitly rather than leaving them dangling.
|
|
# volumes: !reset null
|