All tags
compose
Narrow down
Docker57
- Tip
docker compose eventsdocker compose events streams what happens to the containers of a projectShows create, start and die events of the project's containers live, optionally as JSON.3 Dec 2026 - Tip
docker compose volumesdocker compose volumes lists the volumes a project usesLists the volumes of a Compose project, per service if you like, with a custom format.3 Dec 2026 - Tip
docker compose config --lock-image-digests -o compose.digests.yamlLock the exact Docker images of a Compose project to their digestsWrite an override file that pins every service image to its current digest.30 Nov 2026 - Tip
docker compose --dry-run up -dA Docker Compose dry run shows what a command would create or removePreview which containers and networks a Compose command would create, stop or remove.30 Nov 2026 - Tip
docker compose wait migratedocker compose wait blocks until a Compose service has stoppedMake a script wait for a one-shot service to finish before it continues.30 Nov 2026 - Tip
required: falseDepends_on with required: false lets a Compose service start without an optional dependencyOrder an optional service first when it exists, without failing when it does not.30 Nov 2026 - Tip
docker ps --filter label=com.docker.compose.project=media \Filter docker ps on Compose labels to see one project's containersUse the labels Compose adds to find containers by project or service anywhere.30 Nov 2026 - Tip
platform: linux/amd64Platform: linux/amd64 runs an x86 only Docker image on an ARM machineAsk for a specific image architecture when the default one does not exist.30 Nov 2026 - Tip
services:Compose secrets put a password in a file instead of an environment variableMount a secret as a file under /run/secrets instead of exposing it in the environment.30 Nov 2026 - Tip
docker compose config --servicesCOMPOSE_FILE sets which Compose files load, so you can stop typing -fPick the set of Compose files once through an environment variable.30 Nov 2026 - Tip
docker compose up -ddocker compose restart does not pick up changes to your Compose fileUse up -d after editing compose.yaml, because restart keeps the old settings.30 Nov 2026 - Tip
services:Network_mode service: sends a Compose service through another container's networkLet one service share the network stack of another, such as a VPN container.30 Nov 2026 - Tip
docker compose up -d --force-recreate webForce Docker Compose to recreate a container whose settings did not changeThrow away and recreate a service's containers when a fresh start is the fix.30 Nov 2026 - Tip
docker compose config --variablesList every variable a Docker Compose file needs before you start itSee which variables a project expects, which are required and their defaults.30 Nov 2026 - Tip
content: |Compose configs with content: write a small config file inlinePut a short config file inside the Compose file instead of next to it.30 Nov 2026 - Tip
external: trueExternal: true makes Compose use a Docker volume it did not createShare a volume between projects and keep Compose from ever removing it.30 Nov 2026 - Tip
docker compose --project-directory /srv/app psRun Docker Compose against a project folder without cd into itPoint Compose at a project folder from anywhere, handy in cron jobs and scripts.30 Nov 2026 - Tip
TAG=1.27-alpinePoint Docker Compose at another env file to fill the same file with other valuesRun the same Compose file with a different set of variables per environment.30 Nov 2026 - Tip
docker compose exec --index 2 worker shdocker compose exec with index picks one container of a scaled serviceOpen a shell in the second or third copy of a scaled Compose service.30 Nov 2026 - Tip
services:Docker Compose reads compose.override.yaml without being askedKeep local changes in a second file that Compose merges on top automatically.30 Nov 2026 - Tip
Compose path: docker-compose.ymlAdditional paths in a Portainer Git stack merge extra compose filesLoads a second compose file from the same repository on top of the main one.30 Nov 2026 - Tip
docker compose stopdocker compose stop keeps your containers, down removes themPick stop for a pause and down for a clean slate.30 Nov 2026 - Tip
services:Deploy.resources.limits caps memory and CPU in plain Docker Compose tooSet memory and CPU limits per service in the Compose file, no Swarm needed.30 Nov 2026 - Tip
build: .Set both image: and build: in Compose to give your build a proper nameTag the image Compose builds so you can push, reuse or roll it back.30 Nov 2026 - Tip
services:Post_start runs a command in a Compose service right after it startsFix permissions or seed a file each time the container starts, without a custom image.30 Nov 2026 - Tip
disable: trueHealthcheck disable: true switches off a Docker image's built-in health checkTurn off an image's own health check when it does not fit your setup.30 Nov 2026 - Tip
services:$$ writes a literal dollar sign in a Compose fileWrites a literal dollar sign in a compose file, so the container shell expands the variable.28 Nov 2026 - Tip
services:Extends reuses one Compose service inside anotherLets one compose service inherit another and override only a few keys.28 Nov 2026 - Tip
name: storefrontName: in a Compose file fixes the project nameGives a compose stack a fixed project name instead of the folder name.28 Nov 2026 - Tip
condition: service_completed_successfullyService_completed_successfully runs a one-off job before the appMakes a compose service wait until another one has finished its job with exit code 0.28 Nov 2026 - Tip
required: falseEnv_file with required: false skips a missing fileLets a compose service load an optional env file that may not exist.28 Nov 2026 - Tip
docker compose run --rm --service-ports webdocker compose run --service-ports publishes the ports for a one-off runStarts a one-off compose container with its published ports mapped to the host.28 Nov 2026 - Tip
docker compose up -d --scale worker=3docker compose up --scale runs several copies of a serviceStarts a chosen number of copies of one compose service.28 Nov 2026 - Tip
restart: trueDepends_on restart: true restarts the app when its database is updatedRestarts a compose service whenever Compose updates the service it depends on.28 Nov 2026 - Tip
services:Docker compose port shows the host port of a servicePrints the host address and port a compose service publishes for a container port.28 Nov 2026 - Tip
format: rawFormat: raw passes dollar signs in an env file through untouchedReads an env file without interpolation, so dollar signs and quotes arrive unchanged.28 Nov 2026 - Tip
docker compose down --remove-orphansdocker compose down --remove-orphans cleans up services you removed from the fileRemoves containers left behind by services you deleted or renamed in the compose file.28 Nov 2026 - Tip
docker compose logs --no-log-prefix --no-color --tail 100 appdocker compose logs --no-log-prefix prints plain log linesPrints compose logs without the service-name prefix, so the lines can be copied cleanly.28 Nov 2026 - Tip
docker compose up --exit-code-from tests --builddocker compose up --exit-code-from passes a service's exit code onRuns a stack in the foreground and exits with the exit code of the service you name.28 Nov 2026 - Tip
docker compose ps --all --status=exiteddocker compose ps --status filters services by stateLists only the compose services in one state, such as exited or restarting.28 Nov 2026 - Tip
docker compose -f compose.yaml -f compose.prod.yaml up -ddocker compose -f a.yaml -f b.yaml merges files in orderCombines several compose files in order, so a small file can override parts of the base file.28 Nov 2026 - Tip
include:The include element pulls another compose file into yoursPulls other compose files into your main one so a big stack can be split into smaller files.28 Nov 2026 - Tip
pull_policy: every_12hpull_policy every_12h makes Compose check for new images on a scheduleTells Compose how often to check the registry for a newer image, such as every 12 hours.28 Nov 2026 - Tip
docker compose imagesdocker compose images lists the images behind your project's containersShows which images the containers of a Compose project use, as a table, JSON or only IDs.28 Nov 2026 - Tip
docker compose down --rmi localdocker compose down --rmi local removes the images a project builtStops and removes a Compose project and deletes images that have no custom tag.28 Nov 2026 - Tip
- "host.docker.internal=host-gateway"Host.docker.internal=host-gateway lets a container on Linux reach a service on the hostGives a container a fixed name for the Docker host, so it can reach services running there.27 Nov 2026 - Tip
services:Stop_grace_period gives a slow container more than 10 seconds to shut downLets a container finish its shutdown work before Docker kills it after the default 10 seconds.27 Nov 2026 - Tip
docker compose up -d --no-deps webdocker compose up -d --no-deps recreates one service and leaves its dependencies aloneRecreates only the Compose service you name, without starting or touching the services it depends on.27 Nov 2026 - Tip
docker volume create --driver local \A Docker volume can mount an NFS share with the local driverCreates a Docker volume that mounts a share from your NAS over NFS, no plugin needed.26 Nov 2026 - Tip
docker compose cp web:/etc/nginx/nginx.conf ./nginx.confdocker compose cp copies files in and out of a service containerCopies a file between your host and a Compose service, without looking up the container name.26 Nov 2026 - Tip
x-common: &commonShare config between services with YAML anchors and x- fieldsDefines a settings block once and reuses it in several services of one compose file.17 Sep 2026 - Tip
services:${VAR:?message} makes Compose stop when a variable is missingStops Compose with your own error message when a needed variable is empty or missing.11 Sep 2026 - Tip
docker compose exec -T db pg_dump -U postgres mydb > backup.sqlUse docker compose exec -T when a script runs itRuns a command in a service without a terminal, so output can be piped or redirected cleanly.17 Jul 2026 - Tip
docker run --init myimageAdd init: true when a container leaves zombie processes behindRuns a small init process first so signals are forwarded and finished child processes are cleaned up.24 Jun 2026 - Tip
services:Make depends_on wait for a healthy database, not just a started oneMakes a container wait until its dependency passes its healthcheck before it starts.15 Jun 2026 - Tip
services:Put optional services behind a Compose profileKeeps optional services such as admin tools switched off until you ask for them by name.8 Jun 2026 - Tip
- action: syncDocker compose watch syncs your code into a running containerCopies your changed source files into a running container, or rebuilds it, without a manual rebuild.1 Jun 2026
Network1
Nothing matches.