Registering & Detecting Projects
Before MultiDocker can run a project, it has to know about it. Registration records
the project’s path, chosen profile and hostnames in registry.json and generates its
override file.
Discover compose files with scan
Section titled “Discover compose files with scan”scan walks a directory tree looking for compose files (default root ~/Projects,
maximum depth 4):
mdocker scanmdocker scan ~/clients --jsonIt is read-only — nothing is registered until you init.
Preview the profile with detect
Section titled “Preview the profile with detect”detect runs the profile heuristic against a compose file without registering
anything:
mdocker detect ~/Projects/aurora/docker-compose.ymlRegister with init
Section titled “Register with init”mdocker init ~/Projects/aurorainit detects the profile, writes
~/.config/multi-docker/overrides/<name>.override.yml, and adds the project to the
registry. For dockware-based projects it also patches the project’s
.docker/proxy/*.conf files.
Overriding the defaults
Section titled “Overriding the defaults”| Flag | Purpose |
|---|---|
--name <N> |
Use an explicit project name instead of the directory name. |
--profile <P> |
Force a specific profile instead of the detected one. |
--host <H> |
Set a hostname. Repeat the flag for multiple hostnames. |
mdocker init ~/Projects/aurora \ --name aurora \ --profile generic \ --host aurora.coding9.test \ --host admin.aurora.coding9.testHow profile detection works
Section titled “How profile detection works”The heuristic (engine/detect.sh) inspects image and service names in the compose
file and picks the best-matching template. Bundled profiles include:
shopware-dockware— Shopware 6 with the dockware proxy.strapi-next— a Next.js front-end with a Strapi headless backend.api-web-postgres— an nginx reverse proxy in front of a splitapi+webservice with a PostgreSQL database.generic— the fallback: any service exposing port 80 or 8080 gets synthesized Traefik labels automatically.
If detection guesses wrong, pass --profile at init, or change it later and
re-render. To learn how templates are written and customized, see
Writing & Customizing Profiles and the
Profiles & Templating concept page.
Related
Section titled “Related”Cookie settings
We only use statistics tools if you allow it. Necessary storage keeps this site working; everything else is off until you decide.
Stores your choice from this dialog in your browser (localStorage). No cookie, no transfer to third parties.
Google Analytics 4 via Google Tag Manager, to measure how the site is used. Loaded only after you allow it.