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

5
.env
View File

@ -4,4 +4,7 @@ GITEA__database__DB_TYPE=
GITEA__database__HOST= GITEA__database__HOST=
GITEA__database__NAME= GITEA__database__NAME=
GITEA__database__USER= GITEA__database__USER=
GITEA__database__PASSWD= GITEA__database__PASSWD=
TZ=Asia/Shanghai
TERM=xterm-256color

3
.gitignore vendored
View File

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

View File

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