Using Docker Compose locally, deploying to StackBlaze

7 min readUpdated August 2026

You can import a compose file from the canvas: + Service → Import, then choose docker-compose. That stages apps and add-ons. It is not an npm CLI importer. You can also map by hand.

Step by step

01

Import, or keep compose as a checklist

Import compiles docker-compose onto the canvas. Review every staged node before you commit. Or skip import and recreate: your code as an app, datastores as add-ons.

02

Code services become apps

build: or your own image → a StackBlaze app (Git repository or Docker images). Set Port and Build path as needed.

03

postgres / redis images become add-ons

Do not run postgres:16 or redis:7 as apps. Use Databases → PostgreSQL and Valkey. volumes: on those images map to add-on storage, not an extra volume on your web app unless you add one under Storage.

04

Commit the canvas

Attach add-ons so REDIS_URL and PG* inject. depends_on is not a compose runtime here — the phase private network plus injected URLs replace it.