Deploying
Config vars
Set environment variables for an app, or for every app at once.
Config vars become your app's environment. Changing them rolls out a new release from the same build, so there's nothing to rebuild.
Set and read#
A change to a deployed app is applied right away. To store it for the next deploy instead, add --no-restart:
Values with spaces, newlines or quotes are easier to pass base64-encoded, with --encoded:
Global config#
--global sets a var for every app. App values win over global ones, and --merged shows both together:
A global change reaches each app the next time it restarts or deploys.
Export#
Formats are exports (the default), envfile, docker-args, shell, json, json-list and pretty.
The port#
PORT is special: it sets the port your app listens on and Jokku routes to. See the port.
Compose apps#
In a compose app, config vars fill in ${VAR} in the compose file rather than going to every service, and only the services whose environment changes restart.