From 4fc012d59ac60b675a2e917b5e5fe4986986f36d Mon Sep 17 00:00:00 2001 From: john Date: Thu, 8 Jan 2026 16:01:08 +0000 Subject: [PATCH] Add mygit/docker-compose.yml --- mygit/docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mygit/docker-compose.yml diff --git a/mygit/docker-compose.yml b/mygit/docker-compose.yml new file mode 100644 index 0000000..1eb018e --- /dev/null +++ b/mygit/docker-compose.yml @@ -0,0 +1,35 @@ +services: + server: + image: gitea/gitea:latest + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=gitea + - ENABLE_PUSH_CREATE_USER=true + - ENABLE_PUSH_CREATE_ORG=true + restart: on-failure + volumes: + - /mnt/cephfs/docker/gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "222:22" + depends_on: + - db + security_opt: + - no-new-privileges:true + + db: + image: docker.io/library/postgres:14 + restart: on-failure + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + volumes: + - /mnt/cephfs/docker/postgres:/var/lib/postgresql/data \ No newline at end of file