This commit is contained in:
korzepadawid 2024-12-15 13:10:44 +01:00
parent fab20673c6
commit bd4d7e08ce
2 changed files with 31 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -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"]

21
heroku.yaml Normal file
View File

@ -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