[Unit] Description=Gitea - A painless self-hosted Git service Wants=network.target postgresql.service keycloak.service After=network-online.target [Service] Environment=GITEA_APP_INI=/opt/gitea/etc/app.ini Environment=GITEA_TEMP=/tmp/gitea Environment=GITEA_CUSTOM=/srv/gitea/custom Environment=GITEA_WORK_DIR=/srv/gitea Restart=always Type=simple ExecStart=/opt/gitea/bin/gitea -c /opt/gitea/etc/app.ini WorkingDirectory=/srv/gitea/git User=git Group=itix-svc # If some dependencies of this service are not ready, leave them some time to start RestartSec=10 [Install] WantedBy=multi-user.target default.target