# Copy to .env and fill in the secrets. Do not commit .env. # Gitea container settings GITEA_IMAGE=gitea/gitea:1.26 GITEA_CONTAINER_NAME=gitea GITEA_RESTART_POLICY=unless-stopped # User / time zone GITEA_UID=1000 GITEA_GID=1000 GITEA_TZ=Europe/Rome # Database (MySQL) # Generate the password with: openssl rand -base64 32 MYSQL_IMAGE=mysql:8.4 MYSQL_CONTAINER_NAME=gitea-db MYSQL_DATABASE=gitea MYSQL_USER=gitea MYSQL_PASSWORD=CHANGE_ME # Tune to the host: ~50-70% of available RAM on a dedicated box MYSQL_INNODB_BUFFER_POOL_SIZE=512M MYSQL_MAX_CONNECTIONS=200 # Server URLs and ports GITEA_DOMAIN=git.pyconetwork.it GITEA_SSH_DOMAIN=${GITEA_DOMAIN} GITEA_ROOT_URL=https://${GITEA_DOMAIN}/ # http is correct here: TLS is terminated by the proxy in front of nginx GITEA_PROTOCOL=http GITEA_SSH_PORT=2222 # Leave false: the image's own sshd serves git over SSH on container port 22 GITEA_START_SSH_SERVER=false # Security # INSTALL_LOCK=true skips the web installer (everything it asks is already set # above). Create the first admin from the CLI instead - see README.md. GITEA_INSTALL_LOCK=true GITEA_DISABLE_REGISTRATION=true GITEA_REQUIRE_SIGNIN_VIEW=false # Bind mount locations GITEA_DATA_DIR=./data GITEA_CONFIG_DIR=./config # Nginx reverse proxy NGINX_IMAGE=nginx:1.27-alpine NGINX_CONTAINER_NAME=gitea-nginx NGINX_HTTP_PORT=80 NGINX_CONFIG_DIR=./nginx