diff --git a/Dockerfile b/Dockerfile index cabdb79..88635c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,3 +9,7 @@ ENV GITEA__database__PASSWD=${DATABASE_PASSWORD} ENV GITEA_CUSTOM=/var/lib/gitea/custom COPY app.ini /var/lib/gitea/custom/conf/app.ini + +RUN sed -i "s/HTTP_PORT\s*=\s*3000/HTTP_PORT = $PORT/" /var/lib/gitea/custom/conf/app.ini +RUN sed -i "s#ROOT_URL\s*=\s*http://localhost/#ROOT_URL = http://localhost:$PORT/#" /var/lib/gitea/custom/conf/app.ini + diff --git a/app.ini b/app.ini index 876faf2..9b3392e 100644 --- a/app.ini +++ b/app.ini @@ -7,4 +7,11 @@ PASSWD = gitea SSL_MODE = disable [server] -HTTP_PORT = $PORT +DOMAIN = localhost +HTTP_PORT = 3000 +ROOT_URL = http://localhost:3000/ +SSH_PORT = 2222 + +[repository] +ROOT = /data/git/repositories +