Brewless Brewless Docs

Reference

brewless.yml

Every key of brewless.yml, what it means, and what Brewless does with it today.

On this page

brewless.yml sits in the root of your project and belongs in the repository. It says which organisation and application the project is, and how each environment should be. Run brewless plan to see, per environment, what the file asks for next to what stands now; nothing is changed by it. A file with only organisation, application, framework and php is as valid as a long one.

brewless.yml
organisation: acme
application: shop
framework: laravel
php: "8.4"
default-environment: staging

environments:
  production:
    kind: production
    region: fr-par
    web:
      memory: 1024
      min: 1
      max: 10
    database: shop-main
    queue: sqs
    domains:
      - shop.example.eu
    variables:
      APP_LOCALE: nl
  staging:
    kind: staging
    web:
      max: 2
    scheduler: false

Keys

A key under environments.* is set per environment, under its name. A key you leave out keeps what stands; the default is what an environment gets when Brewless sets it up. A key Brewless does not know is refused by name, so a typo does not go unnoticed.

Key Type Default What it is
organisation string – The organisation at Brewless, as in its address.
application string – The application within the organisation.
framework laravel, laravel-rust, laravel-go, symfony, generic generic How the application is built and released.
php 8.3, 8.4, 8.5, 8.6 8.4 The PHP version a release is built for and runs on.
default-environment string – The environment brewless deploy and brewless plan use when you name none. Has to be one under environments.
build list of commands – Extra build commands, after those of the framework.
release list of commands – The commands that run against a new release before it goes live, in this order.
environments map of environments – The environments, by name: lowercase letters, digits and dashes.
environments.*.kind production, staging, development staging What the environment is for.
environments.*.region fr-par, nl-ams, pl-waw, it-mil fr-par The Scaleway region the environment runs in.
environments.*.branch name of a branch: a push on it deploys this environment (Deploy on push) – The branch whose pushes deploy this environment, with Deploy on push or the GitHub Actions workflow from the console. It changes only with a brewless deploy by someone who may manage the application; a push never changes it.
environments.*.web.memory whole number, megabytes 512 Memory of the web container.
environments.*.web.cpu whole number, thousandths of a vCPU 500 Processor time of the web container.
environments.*.web.timeout whole number, seconds 60 How long one request may take.
environments.*.web.min whole number, replicas 0 Replicas that keep running; 0 lets the container sleep.
environments.*.web.max whole number, replicas 5 The most replicas it scales out to.
environments.*.web.concurrency whole number, requests per replica 50 Requests one replica takes at once before another one starts.
environments.*.web.tmp-storage whole number, megabytes 1000 Local disk of the web container, for files that do not have to outlive a request.
environments.*.release.memory whole number, megabytes 512 Memory of the container the release commands run in.
environments.*.release.cpu whole number, thousandths of a vCPU 500 Processor time of the release container.
environments.*.release.timeout whole number, seconds 900 How long one call to the release container may take. Release commands themselves get 90 seconds per release.
environments.*.release.min whole number, replicas 0 Replicas of the release container that keep running.
environments.*.release.max whole number, replicas 1 The most replicas of the release container.
environments.*.release.tmp-storage whole number, megabytes 1000 Local disk of the release container.
environments.*.worker.memory whole number, megabytes 512 Memory of the container that works the queue and the schedule.
environments.*.worker.cpu whole number, thousandths of a vCPU 500 Processor time of the worker container.
environments.*.worker.timeout whole number, seconds 120 How long one run of the worker may take.
environments.*.worker.min whole number, replicas 0 Replicas of the worker container that keep running.
environments.*.worker.max whole number, replicas 1 The most replicas of the worker container.
environments.*.worker.tmp-storage whole number, megabytes 1000 Local disk of the worker container.
environments.*.worker.queues list of queue names default The queues the worker works, the first one being the default.
environments.*.scheduler true or false true Whether the schedule runs. The worker is called at the moments a task is due. With false and no queue to look in, nothing calls the worker at all. See How the worker is called.
environments.*.runtime_updates true or false: a security update of the runtime images is rolled out by itself true, or what the console set Whether Brewless puts a security update of the images the environment runs on (a new PHP release, a fixed package) under the live release by itself, and mails the owners and administrators. false leaves it to your next deploy; without the key the console decides, which is yes. See Security updates.
environments.*.test_address organisation, short, random: what goes in front of {application}-{environment} in the test address and the pull zones organisation What goes in front of the application and the environment in the test address and the names of the pull zones: the organisation, nothing (short) or a random value of the environment.
environments.*.database name of a database, map with name, standby, min_vcpu and max_vcpu, or false – The database the environment uses, by name; false for none.
environments.*.database.name name of a database – The name of the database, in the map form.
environments.*.database.standby true or false false Keeps a standby copy of a Managed Database in another zone of the region, which brewless db:failover or the console switches to. Scaleway bills it like a second node. See Databases.
environments.*.database.min_vcpu whole number, vCPUs (0 to 15); 0 lets it sleep 0, or what the console set The normal minimum of a Serverless SQL Database, in vCPUs. 0 lets it sleep and cost nothing while nobody asks it anything; 1 or more keeps it awake, and billed, all the time. A boost from the console, the command line or the application stays on top of it. See Database capacity.
environments.*.database.max_vcpu whole number, vCPUs (1 to 15) 4, or what the console set The normal maximum of a Serverless SQL Database, in vCPUs, up to 15. Scaleway scales it between the minimum and this. See Database capacity.
environments.*.queue sqs, database or false – Where jobs wait: Scaleway Queues, the database, or nowhere.
environments.*.network private or public public private puts the containers on the Private Network of the Scaleway project, and reaches a Managed Database over it.
environments.*.cache name of a cache, map with name and size, or false – A Managed Database for Redis on the Private Network, as the cache of the application; false lets it go.
environments.*.cache.name name of a cache – The name of the cache at Scaleway. One that stands is used as it is.
environments.*.cache.size RED1-micro, RED1-2XS, RED1-XS, RED1-S, RED1-M, RED1-L, RED1-XL RED1-micro The node type a new cache gets.
environments.*.cache.nodes 1, or 3 to 6 for a cluster 1 How many nodes a new cache gets: 3 to 6 make a Redis cluster that keeps answering when one node fails. Every node is billed. See A cache.
environments.*.mail scaleway, lettermint, map with mailer and domain, or false scaleway in production The mailer of the application. scaleway sets up Scaleway Transactional Email in your project, lettermint sets the application up in your own Lettermint account where you connected a Team API token that may write, and names the mailer where you did not, false sets up none. Without it, a production environment with a domain gets scaleway. A MAIL_MAILER of your own is never replaced. See Mail.
environments.*.mail.mailer scaleway, lettermint scaleway The mailer, in the map form.
environments.*.mail.domain domain name the first of domains The domain mail is sent from. Without it, the first of domains that is not a wildcard.
environments.*.mail.keep_days whole number, days (0 to 30) 7 For how many days a copy of every mail sent through Scaleway Transactional Email is kept in a private bucket of the environment, for the console to show its headers and a preview. 0 keeps none. Needs brewless/laravel 0.15 or later.
environments.*.storage name of a bucket, map with name, keep_versions_days and cdn, or false – A private bucket for the files of the application, by name or as a map with name, keep_versions_days and cdn; false for none. See Applications and environments.
environments.*.storage.name name of a bucket – The name of the bucket for files. Required in the map.
environments.*.storage.keep_versions_days whole number, days (1 to 3650) – Switches on versioning: a file that is overwritten or removed is kept as an older version, which Object Storage removes this many days after it became one. Files themselves are never removed by it. Without it, the bucket keeps no versions.
environments.*.storage.cdn true, false, or a hostname for the files address true: cdn.{domain} The files address the public files of the bucket are served at through bunny.net: cdn. and the domain of the application by default, false for none, or a hostname of your own. A deploy gives the application AWS_URL once it answers. See The files address.
environments.*.backup map with bucket and the settings of backups by Brewless – Backups: the application's own bucket under bucket, and the settings of backups made by Brewless itself in your account. See Applications and environments.
environments.*.backup.bucket map with region and expire_days, or false: a bucket of the application's own for backups – A private bucket for backups your application writes itself, with versioning, in a region of its own, closed to every other key of the project; false lets it go. The same settings directly under backup, and backup: false, are deprecated: still read as backup.bucket, with a deprecation line in brewless plan, brewless deploy and a push, and refused in a later release. Both together are refused.
environments.*.backup.bucket.name name of a bucket {application}-{environment}-{project}-backups The name of the bucket for backups. Without it, the name of the environment and your project with -backups.
environments.*.backup.bucket.region fr-par, nl-ams, pl-waw, it-mil – The Scaleway region the bucket for backups stands in. Required.
environments.*.backup.bucket.expire_days whole number, days (1 to 3650) – Object Storage removes a backup this many days after it was put. Required.
environments.*.backup.bucket.keep_versions_days whole number, days (1 to 3650) expire_days Object Storage removes an older version of a backup this many days after it became one. Without it, expire_days. A backup is kept at most expire_days plus this.
environments.*.backup.enabled true or false: backups by Brewless false: backups are opt-in Whether Brewless backs the environment up. Backups are off until you switch them on; set here, it wins over the application.
environments.*.backup.schedule daily, hourly, or a cron expression daily How often the backup runs. More often than daily dumps a Serverless SQL Database directly and wakes it each time; brewless plan says what that costs.
environments.*.backup.at HH:MM for daily, :MM for hourly, in the timezone of the policy 03:30 When a daily backup runs, or the minute of an hourly one.
environments.*.backup.retention map with last, hourly, daily, weekly, monthly and yearly: how many of each to keep (0 to 1000; last at least 3) last: 3, daily: 30 How many backups of each kind are kept. last is never below 3, whatever the file says.
environments.*.backup.lock governance, compliance, none: Object Lock of the primary destination governance The Object Lock of the bucket Brewless makes for the backups in another region. Compliance cannot be shortened, also not by the account owner.
environments.*.backup.exclude list of bucket:, database: and prefix:/ [] What the backup leaves out: a bucket, a database, or a prefix of a bucket, by name.
environments.*.backup.secrets true or false: the environment's variables in the backup, encrypted false Whether the environment's variables go into the backup, encrypted in your account. Brewless never reads them.
environments.*.backup.destinations list of primary and destination names defined in the dashboard primary Where the backups go: primary, and the names of destinations defined in the dashboard. Their credentials never go in this file.
environments.*.backup.consistent true or false: the application in maintenance mode while its databases are backed up false Whether the application goes into maintenance mode while its databases are backed up, so nothing writes in between. Needs a maintenance state every container shares; see Application-consistent backups.
environments.*.backup.change_feed true or false: read very large buckets through the Object Storage log, in full once a week false Whether very large buckets are read through the Object Storage log, so a run reads only what changed; once a week everything is read. See The change feed for large buckets.
environments.*.databases map with prefix, or false – Lets the running application ask Brewless for a Serverless SQL Database per tenant; false lets it ask for none, and the databases it made stay. Needs a Serverless SQL Database under database. See Databases per tenant.
environments.*.databases.prefix lowercase letters, digits and dashes, ending in - – What the name of every such database starts with, such as shop-. Required.
environments.*.firewall map with plan, profile, rate_limit, bot_control, waf, sensitivity, waf_log_only and waf_disabled ({} for Shield Basic with nothing more), or false for no Shield zone Shield Basic for an environment made since Shield became the default; nothing for one made before bunny.net Shield in front of the environment, on Shield Basic for an environment made since it became the default; {} for Shield Basic with nothing more, false for no Shield zone. See Firewall.
environments.*.firewall.rules list of at most 25 custom WAF rules, each with name, match, operator, value, action and optionally name_of, negate and lowercase (Shield Advanced) [] Custom WAF rules: what a rule looks at, how it compares, and what it does. Shield Advanced or higher; at most 10 on Advanced, 25 on Business. See Advanced settings.
environments.*.firewall.rate_limits list of at most 25 extra rate limits, each with name, path, requests, per, block, key and action (Shield Advanced) [] Extra rate limits next to rate_limit and rate_limit_sensitive, each on its own paths, window and key. Shield Advanced or higher.
environments.*.firewall.threat_lists map of vpns, datacenters, proxies, tor, botnets, scanners, scrapers to off, block, challenge, log (Shield Advanced) as it is at bunny.net Shield's curated lists of VPNs, data centres, proxies, Tor exit nodes, botnets, scanners and scrapers, each blocked, challenged, logged or off. Shield Advanced or higher.
environments.*.firewall.bot_sensitivity low, medium, high: how sensitive the checks of bot control are (Shield Advanced) as it is at bunny.net How sensitive the three checks of bot control are. Shield Advanced or higher.
environments.*.firewall.unbranded_pages true or false: the block and challenge pages without bunny.net's name (Shield Advanced) as it is at bunny.net The block and challenge pages of Shield without bunny.net's name. Shield Advanced or higher.
environments.*.firewall.upload_scanning off, log, block: what Shield's virus scanner does with an upload through the pull zone (Shield Advanced) as it is at bunny.net What Shield's virus scanner does with a file uploaded through the pull zone: off, log or block. Shield Advanced or higher. See Firewall.
environments.*.firewall.ai_crawler_list true or false: an access list with the address ranges AI companies publish for the crawlers bunny.net does not verify, with the action Allow false An access list of the address ranges AI companies publish for the crawlers bunny.net does not verify, with the action Allow. Refreshed every day. See Bots and AI crawlers.
environments.*.firewall.plan basic, advanced, business, enterprise: the Shield plan this environment expects; a deploy never changes the plan, it says so when the zone is on a lower one – The Shield plan this environment expects. A deploy never changes the plan; it says so when the zone is on a lower one. Change the plan in the console. See Changing the plan.
environments.*.firewall.profile monitor, standard, strict, custom: a set of the settings below in one word; a setting named next to it wins – A security profile: monitor only records, standard blocks at the lowest paranoia level, strict halves the rate limits and asks bot control, custom sets nothing of its own. A setting named next to it wins. See Security profiles.
environments.*.firewall.rate_limit_action block, log: what a rate limit does with a visitor over it block What a rate limit does with an address over it: block it for a minute (block), or only record it (log).
environments.*.firewall.ddos low, medium, high: how quickly the DDoS mitigation steps in as it is at bunny.net How quickly the DDoS mitigation of Shield steps in: low, medium or high. On every plan; left out, bunny.net's own setting stays.
environments.*.firewall.rate_limit whole number, requests per 10 seconds from one address (1 to 100000), or false – How many requests one address may make in 10 seconds before bunny.net blocks it for a minute, on every path but robots.txt, the sitemaps, llms.txt, /.well-known/ and Markdown. Free on Shield Basic.
environments.*.firewall.rate_limit_sensitive whole number, requests per 10 seconds from one address to the login and form paths (1 to 100000), or false – How many requests one address may make in 10 seconds to the login and form paths before bunny.net blocks it for a minute. The second rate limit rule of Shield Basic.
environments.*.firewall.rate_limit_paths list of paths rate_limit_sensitive counts on besides /login, /register, /forgot-password, /reset-password, /two-factor-challenge, /contact [] Paths rate_limit_sensitive counts on besides /login, /register, /forgot-password, /reset-password, /two-factor-challenge and /contact.
environments.*.firewall.rate_limit_key ip, ip_ja4: what a rate limit counts by (ip_ja4 takes Shield Advanced) ip What the rate limits count by: the address, or the address with the TLS fingerprint (ip_ja4, Shield Advanced).
environments.*.firewall.bot_control challenge, log, off – What Shield does with a visitor that looks like a bot. Needs Shield Advanced or higher, which bunny.net bills to your own account.
environments.*.firewall.waf block, log, off: what the managed WAF does with a request a rule matches block (a deploy ends the learning week of a new Shield zone) What the managed WAF does with a request one of its rules matches. block waits for the learning week of a new Shield zone.
environments.*.firewall.sensitivity low, medium, high: the paranoia level of the managed rules, 1 to 3 as it is at bunny.net The paranoia level of the managed WAF rules: low, medium or high is level 1, 2 or 3 of the OWASP Core Rule Set.
environments.*.firewall.waf_log_only list of WAF rule ids that only record as it is at bunny.net WAF rules that only record, also when the WAF blocks. brewless plan names each with how often it matched.
environments.*.firewall.waf_disabled list of WAF rule ids that are off as it is at bunny.net WAF rules that are off. Once the file names the list, it is what the file says.
environments.*.firewall.api_guardian map with spec, mode, endpoints, unknown_paths, validate_responses and rate_limit: bunny.net API Guardian, which takes Shield Advanced – bunny.net API Guardian: requests to the endpoints you list are checked against your OpenAPI document at the edge. Optional, requires Shield Advanced. See API Guardian.
environments.*.firewall.api_guardian.spec auto (Scramble, then Scribe) or a JSON or YAML file of the repository with the OpenAPI document auto Where the build finds the OpenAPI document: auto runs scramble:export when Scramble is installed, then Scribe from .scribe/; or a JSON or YAML file of the repository.
environments.*.firewall.api_guardian.mode log, block: block only after a clean log period of a new or changed document log Whether API Guardian only records or blocks. A new or changed document always records first; block follows after a clean log period.
environments.*.firewall.api_guardian.endpoints list of endpoints as method and path (POST /api/orders), at most 10 on Advanced and 50 on Business – The endpoints API Guardian checks, as method and path as a visitor asks it. The console writes this list for you.
environments.*.firewall.api_guardian.unknown_paths ignore, log, block: what happens to a request to a path the endpoints do not name ignore What happens to a request to a path the endpoints do not name. Only ignore leaves it to the managed WAF.
environments.*.firewall.api_guardian.validate_responses true or false: also check responses against the document, only while API Guardian records false Whether responses are checked against the document too. Only while API Guardian records: in block mode a response that differs would become an error for the visitor.
environments.*.firewall.api_guardian.rate_limit map of an endpoint to requests, per (1s, 10s, 1m, 5m, 15m, 1h) and by (ip, global) – A rate limit per endpoint: requests, per (1s, 10s, 1m, 5m, 15m or 1h) and by (ip or global).
environments.*.bots map of search_engines, ai_search, ai_assistants, ai_training, social_previews, monitoring, seo_tools, ads and overrides, each allow, block or none a new Shield zone: allow for search engines, AI search, AI assistants, AI training, social previews and monitoring What bunny.net Shield does with known crawlers, per group: allow, block or none. robots.txt still decides what they read. See Bots and AI crawlers.
environments.*.bots.overrides map of a bot name (as bunny.net names it, e.g. petalbot) to allow, block or none – A treatment per crawler, by the name bunny.net gives it. Goes before its group.
environments.*.edge map with cache, warm, ignore_query, vary_query, keep_pages, refuse, require_xhr, private_origin, get_only, publish and search – What bunny.net does with the pages of the environment. See Edge cache.
environments.*.edge.cache time the edge keeps a page that is the same for everybody: 0, seconds, or 30m, 1h, 1d (at most 365d) what the framework package says (brewless/laravel: 1 hour) How long bunny.net keeps a page that is the same for everybody. A deploy gives the application this as BREWLESS_EDGE_CACHE, in seconds; every release empties the edge. 0 keeps nothing.
environments.*.edge.warm true or false: after a release, ask every page of the sitemap once through the edge true Whether a release asks every page of the sitemap once through the edge after it went live, so crawlers find them in the cache instead of waking the container. See Warmed after every release.
environments.*.edge.ignore_query list of at most 10 query parameters (a name, or the start of one with * after it): an address whose query string is one of them alone is kept once, as if it had none – Query parameters such as ref or utm_* that change nothing on a page. An address whose query string is one of them alone is kept once, as the address without it. See Links with a query string.
environments.*.edge.vary_query list of at most 10 query parameter names, letters and digits: the edge keeps a copy per value of these and leaves every other parameter out of the address it keeps a page under, whatever the combination. An empty list leaves out every parameter. Name every parameter the application answers differently on, or it is served the page of another – The query parameters your pages truly answer differently on, such as q or page. The edge then keeps a copy per value of these and leaves every other parameter out, so a link with three tracking parameters is the same page to it. Name every one the application reads, or a visitor is served the page of another value. An empty list names none, which leaves every query string out of the cache key: one page per address. See Every query string out of the cache key.
environments.*.edge.keep_pages true or false: a release puts the pages it warms in the storage zone, and a page the edge no longer has comes from there instead of from the container false A release puts the pages it warms in your storage zone, and a page the edge no longer has comes from there instead of from your container. See Pages the edge can go back for.
environments.*.edge.publish true or false: the application gets BREWLESS_EDGE_KEY and may ask Brewless to publish changed pages to the edge without a release (brewless/laravel Edge::publish()), and to keep a redirect table at the edge (Edge::redirects(), needs keep_pages) false Your application gets BREWLESS_EDGE_KEY and may publish changed pages to the edge without a release, and keep a redirect table there. See Publishing to the edge.
environments.*.edge.search true or false: the warm-up of a release makes a search index of the pages it keeps, and the edge answers /_brewless/search?q= from it without the container. Needs keep_pages false The warm-up makes a search index of the pages it keeps, and the edge answers /_brewless/search?q= from it without your container. Needs keep_pages. See Search without your container.
environments.*.edge.strip_trailing_slash true or false: the edge answers an address with a slash at the end (/contact/) with a 301 to the one without (/contact) itself, with its query string, so the container does not wake for it. Never for /, /_ops or /.well-known. Needs keep_pages. Only for an application whose own addresses have no slash at the end false The edge sends /contact/ on to /contact with a 301 itself, without waking your container. Needs keep_pages. See A slash at the end.
environments.*.edge.refuse list of at most 20 path patterns, each a path with a first segment of its own and * for anything after it (/og-image/*): the edge refuses them itself with a 403. Never /_ops or /.well-known – Paths your application no longer serves and never will, such as /og-image/*, that crawlers keep asking for. The edge refuses them itself with a 403, without waking the container. Never /_ops or /.well-known. See Addresses the edge refuses.
environments.*.edge.require_xhr list of at most 20 path patterns of form endpoints, each a path with a first segment of its own (/contact): the edge refuses a POST to them with a 403 unless it carries X-Requested-With: XMLHttpRequest. Only for forms the site's own JavaScript submits. Never /_ops or /.well-known – Form endpoints such as /contact whose page always submits with JavaScript and sends X-Requested-With: XMLHttpRequest. The edge refuses a POST to them without that header with a 403, without waking the container; bots that post a plain HTML form never reach the application. A first line of defence, not authentication. See Form posts without X-Requested-With.
environments.*.edge.private_origin true or false: the web container is made private at Scaleway and only answers requests that carry the token the edge adds, so a request to its own address is refused before it wakes the container. Not with mail through Scaleway false The web container is made private at Scaleway and only answers requests that carry the token the edge adds; a crawler that asks its own address, or the test address, gets a 403 from Scaleway without waking it. Not with mail through Scaleway. See Private origin.
environments.*.edge.get_only true or false: the edge refuses every method but GET and HEAD with a 403, so a POST, PUT or DELETE never wakes the container. /_ops and /.well-known go through as before. Only for a site without forms or an API false The edge refuses every method but GET and HEAD with a 403, without waking the container, so bots and scanners that post to the site never reach the application. /_ops and /.well-known take every method as before. Only for a site without forms, webhooks or an API. See Only GET and HEAD.
environments.*.domains list of domain names – The domains the environment answers on.
environments.*.redirect_domains map of at most 4 domain names, each to the https address the edge sends every request for it to with a 301, or to a map with to and keep_path. At most 2 different addresses, each for at most two domains. Never one of domains – Domains the edge answers with a 301 itself, for every path, without waking the container: an old domain to the new one. Added like a domain, never one of domains. See Redirect domains.
environments.*.redirect_domains.*.to https address, without a query string – The https address a redirect domain sends every request to.
environments.*.redirect_domains.*.keep_path true or false: the path asked for is put after the address of to, which then has no path of its own false Puts the path asked for after the address of to, for a domain that moved page by page. The query string is not taken along.
environments.*.variables map of plain values – Plain variables, such as APP_LOCALE. Never a secret.
environments.*.realtime true, map with image, memory, cpu, min, timeout and host, or false – A WebSocket server for broadcasting, in a container of its own next to the application, that browsers connect to directly. true runs it on the application's own image with every default. See Realtime.
environments.*.realtime.image app, brewless app app runs the server on the release image of the application. brewless runs it on a small image Brewless maintains, which is in closed beta. See Two images.
environments.*.realtime.memory whole number, megabytes 512 (app), 256 (brewless) Memory of the realtime container.
environments.*.realtime.cpu whole number, thousandths of a vCPU follows memory Processor time of the realtime container.
environments.*.realtime.min whole number, replicas (0 or 1); 0 lets it sleep while nobody is connected 0 0 lets the realtime container sleep while no browser is connected; 1 keeps it running. It never has more than one replica.
environments.*.realtime.timeout whole number, seconds a connection may stay open (10 to 3600) 3600 How long one connection may stay open before Scaleway closes it. The browser then connects again.
environments.*.realtime.host true, false, or a hostname for the realtime address true: ws.{domain} The address browsers connect to: true for ws. and the domain of the application, false for only the container's own address, or a hostname of your own. See The address.
environments.*.services map of services – Services next to the application, by name: lowercase letters and digits, without dashes. Each runs in a container of its own on an image you build. See Services.
environments.*.services.*.build path of a directory with a Dockerfile – The directory with the Dockerfile of the service, relative to brewless.yml. brewless service:push builds it on your machine.
environments.*.services.*.memory whole number, megabytes 1024 Memory of the service's container.
environments.*.services.*.cpu whole number, thousandths of a vCPU 560 Processor time of the service's container.
environments.*.services.*.timeout whole number, seconds 60 How long one request to the service may take.
environments.*.services.*.min whole number, replicas 0 Replicas of the service that keep running; 0 lets it sleep.
environments.*.services.*.max whole number, replicas 1 The most replicas of the service.
environments.*.services.*.concurrency whole number, requests per replica 50 Requests one replica of the service takes at once before Scaleway starts another, up to max. Without it the container keeps what it has.
environments.*.services.*.private true or false false true gives the service no public address: it is reached over the Private Network only, on its private endpoint. Needs network: private. See Services.

Sizes

Memory is from 128 to 12288 megabytes and processor time from 70 to 6000 thousandths of a vCPU. Scaleway pairs the two: the memory has to be at least the processor time and at most 4 times it. Give only one of them and the other follows, as Scaleway pairs them (1024 MB with 560). Local disk (tmp-storage) is from 1000 megabytes up to 4 times the memory, at most 24456. A timeout is from 10 to 3600 seconds; concurrency from 1 to 80 requests. Release commands get 90 seconds per release, whatever the timeout of the release container.

No secrets

A secret never belongs in a file in your repository. Under variables, a name that looks like one (it contains KEY, SECRET, PASSWORD, TOKEN, CREDENTIALS, PRIVATE, DSN, SALT or AUTH as a word) is refused. With framework: laravel-rust, DATABASE_URL is refused too: it holds the password of the database. Keep secrets in Secret Manager with brewless env:push; see Variables.

What a deploy does with it today

A deploy sends the whole file along. Brewless builds the release for php with the build steps after those of the framework, runs the release commands instead of the application's own (this needs brewless/laravel 0.3 or later), gives each container the sizes, scale, timeout and local disk the file names, works the worker.queues and leaves the schedule out with scheduler: false. Plain variables go into a new revision of the environment's variables in your Secret Manager before the build; that needs the environment's variables kept through Brewless (push them once with brewless env:push). A rollback puts back what the file asked of the release it goes back to. What the file sets is shown in the console as set in brewless.yml, and the console and brewless scale leave it alone. default-environment is the environment brewless deploy uses when you name none. Before the release, a deploy makes an environment the file names that does not exist yet, with its kind and region, and sets up the database, queue, storage and backup the file names; an environment that runs gets those it is missing, another number of backup.bucket.expire_days or backup.bucket.keep_versions_days sets the bucket for backups up again, and another number of storage.keep_versions_days sets the bucket for files up again. databases gives the application what it needs to ask for a database per tenant; another databases.prefix is refused while databases of the one that stands are recorded. The domains it does not answer on yet are named, and added after a yes or with brewless deploy --domains, because adding one can move its visitors. A production environment with a domain gets Scaleway Transactional Email as its mailer unless the file says mail: false or the environment has a MAIL_MAILER of its own; mail asks for it in another kind of environment too, or for Lettermint. What stands is never switched for something else: another region, kind, database, bucket, bucket for backups or queue is refused before anything is made. false lets a database, a bucket or the bucket for backups go from the environment, while it keeps running at Scaleway. Removing a key from the file never removes anything: what it set stays as it is. services are put live with brewless service:push, which also gives their containers the sizes and scaling the file names; a deploy gives the application each service's address and secret, and is refused while a service it names does not run yet.

This page is written from the Brewless code with every release, so it always matches what runs.