diff --git a/.env b/.env index b61e111..08c0ec1 100644 --- a/.env +++ b/.env @@ -4,4 +4,7 @@ GITEA__database__DB_TYPE= GITEA__database__HOST= GITEA__database__NAME= GITEA__database__USER= -GITEA__database__PASSWD= \ No newline at end of file +GITEA__database__PASSWD= + +TZ=Asia/Shanghai +TERM=xterm-256color \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5eeb11f..1d38f11 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ # deploy -/data \ No newline at end of file +/data +/gitea \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index e45566e..d4e8e71 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,22 +2,26 @@ 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" - - "10022:22" + - "10022:22" \ No newline at end of file