You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Thomas Hintz f79fa8f70e Adding readme 3 days ago
all-apps Adding dozzle for viewing logs. 3 weeks ago
config Adding script/makefile rule for initializing restic 3 days ago
flatcar Refactor build process to clean it up. 1 month ago
.gitignore Adding script/makefile rule for initializing restic 3 days ago
Makefile Adding script/makefile rule for initializing restic 3 days ago
README.org Adding readme 3 days ago
cl.yaml Generate restic configs from apps.config 3 days ago
init-restic.sh Adding script/makefile rule for initializing restic 3 days ago
main.tf Refactor build process to clean it up. 1 month ago
make-caddyfile.sh Specify config files in variables. 3 days ago
make-generated.sh Specify config files in variables. 3 days ago
make-nextcloud-env.sh Specify config files in variables. 3 days ago
make-restic-generated.sh Generate restic configs from apps.config 3 days ago
make-restic-password.sh Generate restic configs from apps.config 3 days ago

README.org

Setup

Dependencies

  • terraform
  • docker
  • bash

Configuration

apps.config

  • cp config/apps.config.tmpl config/apps.config
  • then edit config/apps.config and fill in all variables

production.tfvars

  • cp config/production.tfvars.tmpl config/production.tfvars
  • then edit config/production.tfvars and fill in all variables

ssh keys

  • touch config/ssh-keys
  • if you want to add your ssh key(s) for debugging then paste the pub ID in to the file

initializing the "off-site" Restic backups

  • make restic-init

Deploy

  • make apply

You're done!

It will take a few minutes to deploy the server, start it, and pull all the docker images. But after that you should be able to visit your site and the apps running on its subdomains!