Concepts
Environment & env groups
A service gets its variables from Ferry, from env groups and from its own settings. Ferry resolves references at start.
Ferry adds its own variables first: PORT and FERRY_*.
1 / 5
Each service has its own environment variables. To share variables, put them in an env group and link the group to your services.
A value can be a reference to a datastore or to a different service: ${{…}}. Ferry puts the real value there when the service starts.
Set a variable
ferry env set api LOG_LEVEL=info 'DATABASE_URL=${{datastore.app-db.connectionString}}'