heroku yml

This commit is contained in:
awieczarek 2024-10-19 13:06:31 +02:00
parent 28c06fd58d
commit f69cddd47d

View File

@ -1,6 +1,6 @@
setup:
addons:
- plan: heroku-postgresql:hobby-dev
- plan: heroku-postgresql
as: DATABASE
build:
@ -8,11 +8,16 @@ build:
web: gitea/gitea:1.14.5-rootless
run:
web:
command: /bin/s6-svscan /etc/s6
environment:
GITEA__database__DB_TYPE: postgres
GITEA__database__CONN_STR: ${DATABASE_URL}
GITEA__web__ROOT_URL: https://${HEROKU_APP_NAME}.herokuapp.com/
GITEA__server__START_SSH_SERVER: "true"
web: /bin/su-exec git /app/gitea/gitea web
env:
GITEA__database__DB_TYPE: postgres
GITEA__database__HOST: ${DATABASE_HOST}
GITEA__database__NAME: ${DATABASE_DB}
GITEA__database__USER: ${DATABASE_USER}
GITEA__database__PASSWD: ${DATABASE_PASSWORD}
GITEA__server__ROOT_URL: https://your-app-name.herokuapp.com/
GITEA__server__HTTP_PORT: 3000
GITEA__server__SSH_PORT: 2222