services:
  gitea:
    image: gitea/gitea:1.27.0
    container_name: gitea
    restart: unless-stopped
    environment:
      USER_UID: "1000"
      USER_GID: "1000"
      GITEA__database__DB_TYPE: sqlite3
      GITEA__database__PATH: /data/gitea/gitea.db
      GITEA__server__DOMAIN: git.imagebrewing.com
      GITEA__server__ROOT_URL: https://git.imagebrewing.com/
      GITEA__server__HTTP_PORT: "3000"
      GITEA__server__DISABLE_SSH: "true"
      GITEA__server__OFFLINE_MODE: "true"
      GITEA__service__DISABLE_REGISTRATION: "false"
      GITEA__service__REGISTER_MANUAL_CONFIRM: "true"
      GITEA__service__REQUIRE_SIGNIN_VIEW: "false"
      GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION: "false"
      GITEA__repository__DEFAULT_PRIVATE: public
      GITEA__security__INSTALL_LOCK: "true"
      GITEA__cron__ENABLED: "true"
      GITEA__log__MODE: console
      GITEA__log__LEVEL: Info
    ports:
      - "127.0.0.1:13000:3000"
    volumes:
      - /data/gitea/data:/data
