FerryDocs
ArchitectureDeploy pipeline

Start the instances

After the build, the engine starts the wanted number of instances from the snapshot.

Edit on GitHub
Private networkalias: its nameRestart policyunless-stoppedNew instancePublished port127.0.0.1:<random>Limitsmemory, CPU, pids

Each new instance joins the private network. Its DNS alias is the name of the service.

1 / 4

The first takes the service lock and saves the snapshot. Then it starts the instances. The state of the deploy is deploying.

Deploy log
==> Limits: 512 MiB memory, 1 CPU per instance

What each container gets

SettingValue
NetworkThe , with the service name as
unless-stopped
127.0.0.1:<random port>. See Why 127.0.0.1.
MemoryThe memory limit, with no swap above it
CPUThe CPU limit
Processes--pids-limit
LogsLog rotation (--log-max-size, --log-max-files), when the default log driver of the Docker daemon is json-file

On this page