This commit is contained in:
asmigiel 2025-01-04 22:42:34 +01:00
parent a3bb5db8a1
commit 8d71c4bf32
2 changed files with 16 additions and 31 deletions

View File

@ -1,20 +1,11 @@
#FROM gitea/gitea:1.14.5
#
#WORKDIR /app
#
#COPY run.sh ./
#
#ENV GITEA_CUSTOM=/var/lib/gitea/custom
#
#RUN chmod +x ./run.sh
#
#ENTRYPOINT ["./run.sh"]
FROM gitea/gitea:1.14.5
WORKDIR /app
COPY ./data /var/lib/gitea
COPY ./config /etc/gitea
COPY run.sh ./
EXPOSE 3000 2222
ENV GITEA_CUSTOM=/var/lib/gitea/custom
RUN chmod +x ./run.sh
ENTRYPOINT ["./run.sh"]

View File

@ -1,18 +1,12 @@
build:
docker:
web: Dockerfile
run:
web: /usr/bin/entrypoint /bin/s6-svscan /etc/s6
setup:
addons:
- plan: heroku-postgresql
as: DATABASE
# config:
# POSTGRES_USER: "gitea"
# POSTGRES_PASSWORD: "gitea"
# POSTGRES_DB: "gitea"
env:
GITEA__database__DB_TYPE: postgres
GITEA__database__HOST: ${DATABASE_URL}
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD: gitea
build:
docker:
web: Dockerfile