WIP: flora-6/gitea: Move towards docker containers #161
Loading…
Reference in a new issue
No description provided.
Delete branch "update/gitea-docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks for starting this - I hope this will fix our little gpg core dump problem as well.
I'd vote for the option: https://docs.gitea.io/en-us/install-with-docker/#sshing-shell-with-authorized_keys for the SSH access to the container, as it seems the most easy to understand for me (for future readers to understand what we're doing here).
@ -18,1 +18,4 @@
users.users.git = {
description = "Gitea SSH Service";
home = "/var/lib/gitea/git";
Let's stick to the gitea docs:
@ -19,0 +19,4 @@
users.users.git = {
description = "Gitea SSH Service";
home = "/var/lib/gitea/git";
useDefaultShell = false;
@ -19,0 +20,4 @@
description = "Gitea SSH Service";
home = "/var/lib/gitea/git";
useDefaultShell = false;
uid = 995;
995
is taken by usersystemd-oom
, uid992
is still free on flora-6.@ -19,0 +32,4 @@
oci-containers = {
backend = "docker";
containers."gitea" = {
image = "gitea:gitea:1.18.3";
@ -19,0 +34,4 @@
containers."gitea" = {
image = "gitea:gitea:1.18.3";
autoStart = true;
user = "995";
Let's use
992
here, too.@ -19,0 +40,4 @@
"127.0.0.1:2222:22"
];
volumes = [
"/var/lib/gitea:/data"
@ -19,0 +42,4 @@
volumes = [
"/var/lib/gitea:/data"
# Secrets go in the app.ini file, the rest wil be done in nix via environment variables
"/var/lib/gitea/custom/conf/app.ini:/${config.age.secrets.gitea-secrets-app-ini.path}"
@ -19,0 +51,4 @@
];
environment = {
USER_UID = "postgres";
USER_GID = "postgres";
Let's match the user inside the container with the
git
user on the host@ -19,0 +58,4 @@
DB_TYPE = "postgres";
DB_HOST = "gitea-db";
DISABLE_REGISTRATION = "true";
};
Superseeded by #176
Pull request closed