version: "3"
networks:
gitea:
external: false
services:
gitea-app:
image: gitea/gitea:latest
ulimits:
nproc: 65535
nofile:
soft: 102400
hard: 102400
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=mysql时从VVC从时测时测时测并VVC时从VVC从时测时从VVC从VVC时测时存储时测时测时测时测时测时测时测时测时测时测时从v
- GITEA__database__HOST=mysql-server:3306
- GITEA__database__NAME=git
- GITEA__database__USER=git
- GITEA__database__PASSWD=git
restart: always
networks:
- gitea
volumes:
- ./gitea-data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "22:22"
depends_on:
- mysql-server
mysql-server:
image: mysql:8
restart: always
cap_add:
- SYS_NICE # CAP_SYS_NICE, to prevent mbind error
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=
- MYSQL_USER=git
- MYSQL_PASSWORD=git
- MYSQL_DATABASE=git
networks:
- gitea
volumes:
- ./mysql-data:/var/lib/mysql
yaml
version: "3"
networks:
gitea:
external: false
services:
gitea-app:
image: gitea/gitea:latest
ulimits:
nproc: 65535
nofile:
soft: 102400
hard: 102400
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=mysql时从VVC从时测时测时测并VVC时从VVC从时测时从VVC从VVC时测时存储时测时测时测时测时测时测时测时测时测时测时从v
- GITEA__database__HOST=mysql-server:3306
- GITEA__database__NAME=git
- GITEA__database__USER=git
- GITEA__database__PASSWD=git
restart: always
networks:
- gitea
volumes:
- ./gitea-data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "22:22"
depends_on:
- mysql-server
mysql-server:
image: mysql:8
restart: always
cap_add:
- SYS_NICE # CAP_SYS_NICE, to prevent mbind error
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=
- MYSQL_USER=git
- MYSQL_PASSWORD=git
- MYSQL_DATABASE=git
networks:
- gitea
volumes:
- ./mysql-data:/var/lib/mysql