1.7 KiB
1.7 KiB
Docker Environment Composition
This repo uses multi-file Docker Compose with a wrapper script as the composition entrypoint.
Composition source of truth
services-up.sh is the composition authority for this repository.
It:
- discovers compose files under
apps/,monitoring/, andcore/, - prepends shared baseline files,
- applies
default-environment.envandsecrets/stack-secrets.env, - invokes
docker composewith a stable project name.
Because of this, when validating or understanding runtime composition, prefer running:
./services-up.sh --profile all config
Inputs used by services-up.sh
default-network.yml- discovered
docker-compose.yml/docker-compose.yamlfiles undercore/,apps/,monitoring/ default-environment.envsecrets/stack-secrets.env(local, not committed)
Typical workflows
Validate final composed model
./services-up.sh --profile all config
Use this to review merged services, networks, volumes, profiles, and environment substitution.
Validate one compose file directly
docker compose -f apps/nextcloud/docker-compose.yml config
Use this when focused on one service family.
Deployment prerequisites
Before runtime operations, follow deployment-prerequisites.md to create required local secret files.
What not to do
- Do not treat archived compose files in
archive/as active runtime definitions. - Do not hardcode secrets in committed compose files.
- Do not bypass
services-up.shwhen trying to understand full active composition.