# Gitea – self-hosted Git server services: server: image: docker.gitea.com/gitea:1.27.1 container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA__webhook__SKIP_TLS_VERIFY=false - GITEA__service__DISABLE_REGISTRATION=false - GITEA__service__REQUIRE_SIGNIN_VIEW=false - GITEA__session__COOKIE_SECURE=false restart: unless-stopped networks: - gitea_net volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "222:22" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 30s logging: driver: json-file options: max-size: "10m" max-file: "3" networks: gitea_net: name: gitea_default driver: bridge