docker gitea

main
lincaigui 7 months ago
commit 4e79eee487

@ -0,0 +1,44 @@
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.19.0
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
- TZ=Asia/Shanghai
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- ./gitea/tmp:/tmp
ports:
- "3000:3000"
- "3422:22"
depends_on:
- db
db:
image: mysql:8
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
- TZ=Asia/Shanghai
networks:
- gitea
volumes:
- ./mysql:/var/lib/mysql

@ -0,0 +1,3 @@
## 本托管网站建设
### 1.安装docker
### 2.安装docker-compose
Loading…
Cancel
Save