diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..205c3fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM gitea/gitea:1.14.5-rootless + +WORKDIR /var/lib/gitea + +USER gitea + +EXPOSE 3000 + +CMD ["/usr/local/bin/gitea", "web"] + diff --git a/heroku.yaml b/heroku.yaml new file mode 100644 index 0000000..b80dc2f --- /dev/null +++ b/heroku.yaml @@ -0,0 +1,21 @@ +build: + docker: + web: Dockerfile + +run: + web: | + /bin/su-exec gitea /usr/local/bin/gitea web + +setup: + addons: + - plan: heroku-postgresql + as: DATABASE + +env: + 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} + + PORT: 3000