Use Gitea over GitLab
Gitea simply offers better performance. I wasn't using all of GitLab's features anyway, and while the missing CI is annoying, I hadn't previously managed to set this up anyway, and it can be easily replaced by something a bit more dedicated than GitLab's implementation. This should hopefully allow me to host git repositories without compromising on memory/CPU time available to other services.
This commit is contained in:
parent
9010db4f75
commit
367579f5cd
4 changed files with 53 additions and 45 deletions
etc/nixos/services
51
etc/nixos/services/gitea.nix
Normal file
51
etc/nixos/services/gitea.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
networked-docker-containers = {
|
||||
gitea = {
|
||||
image = "gitea/gitea:latest";
|
||||
ports = [
|
||||
"2221:2221"
|
||||
];
|
||||
volumes = [
|
||||
"gitea:/data:Z"
|
||||
"/etc/timezone:/etc/timezone:ro"
|
||||
"/etc/localtime:/etc/localtime:ro"
|
||||
];
|
||||
environment = {
|
||||
VIRTUAL_PORT = "3000";
|
||||
VIRTUAL_HOST = "gitea.tlater.net";
|
||||
LETSENCRYPT_HOST = "gitea.tlater.net";
|
||||
|
||||
DB_TYPE = "postgres";
|
||||
DB_HOST = "gitea-postgres:5432";
|
||||
DB_NAME = "gitea";
|
||||
DB_USER = "gitea";
|
||||
DB_PASSWD = "/qNDDK9WCMuubfA7D8DFwfl9T+Gy2IMDvPhiNpcxZjY=";
|
||||
|
||||
RUN_MODE = "prod";
|
||||
DOMAIN = "gitea.tlater.net";
|
||||
SSH_PORT = "2221";
|
||||
};
|
||||
networks = [
|
||||
"webproxy"
|
||||
"gitea"
|
||||
];
|
||||
};
|
||||
|
||||
gitea-postgres = {
|
||||
image = "postgres:alpine";
|
||||
environment = {
|
||||
POSTGRES_DB = "gitea";
|
||||
POSTGRES_USER = "gitea";
|
||||
POSTGRES_PASSWORD = "/qNDDK9WCMuubfA7D8DFwfl9T+Gy2IMDvPhiNpcxZjY=";
|
||||
};
|
||||
volumes = [
|
||||
"gitea-db-data:/var/lib/postgresql/data"
|
||||
];
|
||||
networks = [
|
||||
"gitea"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue