From ffbde3bed21382614123b4a1e55b2386b0dd3d62 Mon Sep 17 00:00:00 2001 From: awieczarek Date: Sat, 19 Oct 2024 12:39:20 +0200 Subject: [PATCH] heroku yml --- heroku.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 heroku.yml diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 0000000..43b018a --- /dev/null +++ b/heroku.yml @@ -0,0 +1,25 @@ +setup: + addons: + - plan: heroku-postgresql:hobby-dev + as: DATABASE + +build: + docker: + web: gitea/gitea:1.14.5-rootless + +run: + web: gitea/gitea:1.14.5-rootless + config: + PORT: 3000 + SSH_PORT: 2222 + command: + - /bin/s6-svscan /etc/s6 + environment: + GITEA__database__DB_TYPE: postgres + GITEA__database__HOST: ${DATABASE_HOST} + GITEA__database__NAME: ${DATABASE_NAME} + GITEA__database__USER: ${DATABASE_USER} + GITEA__database__PASSWD: ${DATABASE_PASSWORD} + GITEA__web__ROOT_URL: https://${HEROKU_APP_NAME}.herokuapp.com/ + GITEA__server__START_SSH_SERVER: "true" +