What not to do
Refused
Section titled “Refused”The deploy stops with an error saying which service and why:
privileged: truenetwork_mode: host,pid: host,ipc: host,uts: hostdevices:(host devices)- Host bind mounts:
./data:/data,/var/run/docker.sock:/var/run/docker.sock, any host path. Use a named volume. cap_addbeyond Docker’s default capabilities,security_optvalues that loosen the sandbox, andsysctlsoutside a small safe listbuild:without a connected repo- A size over your plan’s limits, or more than 15 services in one project
Ignored, with a notice
Section titled “Ignored, with a notice”Accepted, but not applied as written. The check (and the deployment’s Compose tab) lists each one:
- Services behind
profiles:are not deployed. - CPU-sharing and swap settings (
cpu_shares,cpuset,memswap_limit,mem_swappiness,oom_score_adj, …): each service has its own VM. - The host side of a port mapping:
"8080:80"is reached at its own HTTPS address, not on port 8080.
Not applied (no notice yet)
Section titled “Not applied (no notice yet)”These are not read today, so don’t rely on them:
entrypoint: put what you need incommand, or in the image.env_file: only the compose file is sent. Use project variables.healthcheck: not used to decide anything. (To show visitors a Starting page, CargoForge checks whether a published port answers.)user,working_dir,hostname,extra_hosts,tmpfs,read_only,ulimits,shm_size,init,labels,container_namesecrets:andconfigs:: use project variables.deploy.replicas(one copy of each service runs),deploy.placement
Bad ideas
Section titled “Bad ideas”- A database without a volume. Its data goes on the next redeploy. Add one.
fragile: falseon a database. Two copies on one data directory corrupt it. See Fragile.- Secrets written in the file. The file is stored and shown on the Compose tab. Use project variables.
latesttags. A redeploy or failover may pull a newer image than the one you tested. Pin a version (postgres:17.2).- A tiny
stop_grace_periodon a database. It needs time to flush on every stop. 30-60 s is typical. - Relying on the container filesystem. Anything not in a volume is gone on the next redeploy, restart on another host, or failover.