setup: addons: - plan: heroku-postgresql as: DATABASE build: docker: web: gitea/gitea:1.14.5-rootless run: 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