From 89a2edb0ee5a5b9be53d9e58b5574e6951c21c6e Mon Sep 17 00:00:00 2001 From: evlic Date: Wed, 29 Mar 2023 10:00:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(env):=20=E2=9C=A8=20using=20env=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 ++ docker-compose.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 38fe887..b61e111 100644 --- a/.env +++ b/.env @@ -1,3 +1,5 @@ +DIR=. + GITEA__database__DB_TYPE= GITEA__database__HOST= GITEA__database__NAME= diff --git a/docker-compose.yaml b/docker-compose.yaml index d3057ce..e45566e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,7 +15,7 @@ services: networks: - gitea volumes: - - ${HOME}/.config/gitea/data:/data + - ${DIR:-.}/gitea/data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: