services: gitea: image: gitea/gitea:latest container_name: gitea restart: unless-stopped ports: - "3000:3000" - "2222:22" # SSH port, host port can be changed if 22 is in use volumes: - gitea_data:/data volumes: gitea_data: