feat(env): time

This commit is contained in:
evlic 2023-04-05 13:51:27 +08:00
parent 89a2edb0ee
commit a8cae44946
3 changed files with 15 additions and 7 deletions

3
.env
View File

@ -5,3 +5,6 @@ GITEA__database__HOST=
GITEA__database__NAME=
GITEA__database__USER=
GITEA__database__PASSWD=
TZ=Asia/Shanghai
TERM=xterm-256color

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
# deploy
/data
/gitea

View File

@ -2,21 +2,25 @@ version: "3"
networks:
gitea:
name: gitea
driver:
bridge
external: false
services:
server:
gitea:
image: gitea/gitea:dev
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
USER_UID: 1000
USER_GID: 1000
TZ:
TERM:
restart: always
networks:
- gitea
volumes:
- ${DIR:-.}/gitea/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "1080:3000"