gitea-搭建 发表于 2021-07-10 | 分类于 技术建立docker处理文件,并后台运行1docker-compse -f 文件名 up -d文件内容123456789101112131415161718192021222324252627version: "3"networks: gitea: external: falseservices: server: image: gitea/gitea:1.14.4 container_name: gitea environment: - USER_UID=1001 - USER_GID=1001 - GITEA__database__DB_TYPE=mysql - GITEA__database__HOST=db:3306 - GITEA__database__NAME=gitea - GITEA__database__USER=root - GITEA__database__PASSWD=Ace6d990 restart: always network_mode: bridge volumes: - /data/gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3150:3000" - "3022:22"