From 8af45cdbd4662dcdf085286e54f6f4eaf7faae71 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 21 Nov 2021 22:37:36 +0100 Subject: [PATCH] More cloud-aware instructions --- README.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index baa61b2..5dd5739 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,53 @@ Then execute docker-compose build --no-cache --pull ``` -One-click Heroku deployment: https://heroku.com/deploy?template=https://github.com/pictuga/morss +### Cloud providers + +One-click deployment: + +* Heroku: +* Google Cloud: + +Providers supporting `cloud-init`: + +``` yml +#cloud-config + +packages: + - docker.io + - docker-compose + - git + - ca-certificates + +groups: + - docker + +system_info: + default_user: + groups: [docker] + +write_files: + - path: /docker-compose.yml + permissions: "0644" + content: | + version: '3.7' + services: + app: + build: 'https://git.pictuga.com/pictuga/morss.git#master' + image: morss + ports: + - 80:8000 + environment: + - DEBUG=1 + - CACHE=diskcache + - CACHE_SIZE=1073741824 + restart: always + +runcmd: + - update-ca-certificates + - docker-compose -f /docker-compose.yml build --no-cache + - docker-compose -f /docker-compose.yml up -dV +``` ## Run