diff --git a/conf/app.ini b/conf/app.ini new file mode 100644 index 0000000..0b888e3 --- /dev/null +++ b/conf/app.ini @@ -0,0 +1,7 @@ +[database] +DB_TYPE = postgres +HOST = db:5432 +NAME = gitea +USER = gitea +PASSWD = gitea +SSL_MODE = require diff --git a/heroku.yml b/heroku.yml index 23c461b..4f05cbe 100644 --- a/heroku.yml +++ b/heroku.yml @@ -6,15 +6,16 @@ setup: POSTGRES_USER: gitea POSTGRES_PASSWORD: gitea POSTGRES_DB: gitea + +build: + docker: + web: Dockerfile + config: GITEA__database__DB_TYPE: postgres GITEA__database__HOST: db:5432 GITEA__database__NAME: gitea GITEA__database__USER: gitea GITEA__database__PASSWD: gitea -build: - docker: - web: Dockerfile - run: web: /usr/local/bin/gitea web -port $PORT