From 8706fae2b5e0fea27f6d8ea5b8e5c27153f9921c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 19 Feb 2023 17:34:06 +0100 Subject: [PATCH] Reveal all options in default config --- lib/mrsk/cli/templates/deploy.yml | 62 ++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/lib/mrsk/cli/templates/deploy.yml b/lib/mrsk/cli/templates/deploy.yml index ee631122..8ddc39ff 100644 --- a/lib/mrsk/cli/templates/deploy.yml +++ b/lib/mrsk/cli/templates/deploy.yml @@ -1,5 +1,4 @@ -# Name of your application. Used to uniquely configuring Traefik and app containers. -# Your Dockerfile should set LABEL service=the-same-value to ensure image pruning works. +# Name of your application. Used to uniquely configure containers. service: my-app # Name of the container image. @@ -15,3 +14,62 @@ registry: # server: registry.digitalocean.com / ghcr.io / ... username: my-user password: my-password-should-go-somewhere-safe + +# Inject ENV variables into containers. +# env: +# clear: +# DB_HOST: 192.168.0.2 +# secret: +# - RAILS_MASTER_KEY + +# Call a broadcast command on deploys. +# audit_broadcast_cmd: +# bin/broadcast_to_bc + +# Use a different ssh user than root +# ssh: +# user: app + +# Configure builder setup. +# builder: +# args: +# RUBY_VERSION: 3.2.0 +# secrets: +# - GITHUB_TOKEN +# remote: +# arch: amd64 +# host: ssh://app@192.168.0.1 + +# Use accessory services. +# accessories: +# db: +# image: mysql:8.0 +# host: 192.168.0.2 +# port: 3306 +# env: +# clear: +# MYSQL_ROOT_HOST: '%' +# secret: +# - MYSQL_ROOT_PASSWORD +# files: +# - config/mysql/production.cnf:/etc/mysql/my.cnf +# - db/production.sql.erb:/docker-entrypoint-initdb.d/setup.sql +# directories: +# - data:/var/lib/mysql +# redis: +# image: redis:7.0 +# host: 192.168.0.2 +# port: 6379 +# directories: +# - data:/data + +# Configure custom arguments for Traefik +# traefik: +# args: +# accesslog: true +# accesslog.format: json + +# Configure a custom healthcheck (default is /up on port 3000) +# healthcheck: +# path: /healthz +# port: 4000