adjust port

This commit is contained in:
Marcin Kostrzewski 2022-11-15 20:56:39 +01:00
parent 4897e28b7f
commit a1cd380049

1
run.sh
View File

@ -3,5 +3,6 @@ export GITEA__database__HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//'
export GITEA__database__NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-` export GITEA__database__NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
export GITEA__database__USER=`echo $DATABASE_URL | grep -o "//[a-z]*:" | grep -o "[a-z]*"` export GITEA__database__USER=`echo $DATABASE_URL | grep -o "//[a-z]*:" | grep -o "[a-z]*"`
export GITEA__database__PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"` export GITEA__database__PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
mkdir /etc/gitea/conf
echo "HTTP_PORT = $PORT" > /etc/gitea/conf/app.ini echo "HTTP_PORT = $PORT" > /etc/gitea/conf/app.ini
/usr/local/bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh