From 7ba86538da2766056fa2c07b33816286d286f72e Mon Sep 17 00:00:00 2001 From: awieczarek Date: Sat, 19 Oct 2024 13:50:12 +0200 Subject: [PATCH] fix --- Dockerfile | 7 +++---- app.ini | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 app.ini diff --git a/Dockerfile b/Dockerfile index 5ad6a7b..325ab5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,6 @@ ENV GITEA__database__NAME=${DATABASE_DB} ENV GITEA__database__USER=${DATABASE_USER} ENV GITEA__database__PASSWD=${DATABASE_PASSWORD} -ADD data /var/lib/gitea -ADD localtime /etc/localtime -ADD timezone /etc/timezone -ADD conf/ /var/lib/gitea/custom/conf/ +ENV GITEA_CUSTOM=/var/lib/gitea/custom + +COPY app.ini /var/lib/gitea/custom/app.ini diff --git a/app.ini b/app.ini new file mode 100644 index 0000000..9b3392e --- /dev/null +++ b/app.ini @@ -0,0 +1,17 @@ +[database] +DB_TYPE = postgres +HOST = db:5432 +NAME = gitea +USER = gitea +PASSWD = gitea +SSL_MODE = disable + +[server] +DOMAIN = localhost +HTTP_PORT = 3000 +ROOT_URL = http://localhost:3000/ +SSH_PORT = 2222 + +[repository] +ROOT = /data/git/repositories +