version: "3" networks: gitea: external: false services: server: image: gitea/gitea:1.17.4 container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA__database__DB_TYPE=mysql - GITEA__server__DOMAIN=${DOMAIN} - GITEA__database__HOST=10.10.10.2:3306 - GITEA__database__NAME=gitea - GITEA__database__USER=gitea - GITEA__database__PASSWD=gitea restart: always networks: - gitea volumes: - ./data:/root/gitea - ./config:/root/gitea/config - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - /mnt/volume:/data ports: - "3000:3000" - "222:22"