version: "2" services: server: image: gitea/gitea:latest environment: - GITEA__database__DB_TYPE=mysql - GITEA__database__HOST="10.0.0.2:3306" - GITEA__database__NAME=gitea - GITEA__database__USER=root - GITEA__database__PASSWD=chuj123456 restart: always volumes: - ./data:/var/lib/gitea - ./config:/etc/gitea - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2222:2222" volumes: data: {}