feat(env): using env file

This commit is contained in:
evlic 2023-03-29 10:00:48 +08:00
parent 495420558e
commit 89a2edb0ee
2 changed files with 3 additions and 1 deletions

2
.env
View File

@ -1,3 +1,5 @@
DIR=.
GITEA__database__DB_TYPE= GITEA__database__DB_TYPE=
GITEA__database__HOST= GITEA__database__HOST=
GITEA__database__NAME= GITEA__database__NAME=

View File

@ -15,7 +15,7 @@ services:
networks: networks:
- gitea - gitea
volumes: volumes:
- ${HOME}/.config/gitea/data:/data - ${DIR:-.}/gitea/data:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports: