New postgres solution
This commit is contained in:
parent
41bea0ceac
commit
3e7777f202
10
Dockerfile
10
Dockerfile
@ -1,14 +1,8 @@
|
||||
FROM gitea/gitea:1.14.5-rootless
|
||||
|
||||
ENV GITEA__database__DB_TYPE=postgres
|
||||
ENV GITEA__database__HOST=${DATABASE_HOST}
|
||||
ENV GITEA__database__NAME=${DATABASE_DB}
|
||||
ENV GITEA__database__USER=${DATABASE_USER}
|
||||
ENV GITEA__database__PASSWD=${DATABASE_PASSWORD}
|
||||
|
||||
ENV GITEA_CUSTOM=/var/lib/gitea/custom
|
||||
|
||||
ARG DATABASE_URL='db:5432'
|
||||
ENV DATABASE_URL=${DATABASE_URL}
|
||||
RUN eval $(echo $DATABASE_URL | sed -e 's/^postgres:\/\///' -e 's/@/ /' -e 's/:/ /' -e 's/\// /') \
|
||||
&& export DATABASE_HOST=$2 && export DATABASE_USER=$1 && export DATABASE_PASSWORD=$3 && export DATABASE_DB=$5
|
||||
|
||||
COPY app.ini /var/lib/gitea/custom/conf/app.ini
|
||||
|
Loading…
Reference in New Issue
Block a user