From 8b753b00d4328fc3c3d394ece7ddf77fe6839402 Mon Sep 17 00:00:00 2001 From: Damian Myrda Date: Fri, 5 Jul 2024 15:41:33 -0500 Subject: [PATCH] Add git forge --- compose.yml | 24 ++++++++++++++++++++---- git.env | 5 +++++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 git.env diff --git a/compose.yml b/compose.yml index b7da4be..569b573 100644 --- a/compose.yml +++ b/compose.yml @@ -10,6 +10,7 @@ services: - /etc/letsencrypt/live/prime8.dev/privkey.pem:/ssl/privkey.pem restart: always stop_grace_period: 1m + mail: container_name: mail image: ghcr.io/docker-mailserver/docker-mailserver:latest @@ -23,10 +24,10 @@ services: - "993:993" # IMAP4 (implicit TLS) volumes: - /etc/localtime:/etc/localtime/:ro - - /var/mail/data/:/var/mail/ - - /var/mail/state/:/var/mail-state/ - - /var/mail/logs/:/var/log/mail/ - - /var/mail/config/:/tmp/docker-mailserver/ + - mail:/data/:/var/mail/ + - mail:/state/:/var/mail-state/ + - mail:/logs/:/var/log/mail/ + - mail:/config/:/tmp/docker-mailserver/ - /etc/letsencrypt/:/etc/letsencrypt/ cap_add: - NET_ADMIN @@ -36,3 +37,18 @@ services: retries: 0 restart: always stop_grace_period: 1m + + git: + container_name: git + image: bacnh85/gitolite-cgit + env_file: git.env + volumes: + - git:/var/lib/git/ + ports: + - "22:22" + - "80:80" + - "9418:9418" + +volumes: + mail: + git: diff --git a/git.env b/git.env new file mode 100644 index 0000000..ff2b92c --- /dev/null +++ b/git.env @@ -0,0 +1,5 @@ +SSH_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbhuxFr7zO5fcvLMP8dt1SQAQ1uEw0rJCeFI7o5JFULA4w1dB9yc9FotnVwxRroXpBHxmH7jTFsuCXjHj5CQFDnDb0Vq6iVrtj4WEWBg4N+juA347pmKPLVnyEofpjIHHFSj4b4U/ozk/xEfekNrAxrjhMYcREXQsMI168MNupCEqrqWAyDygokKTicwEX0YNCX2ig5Obs9dUj/nbaWL9/kWgOejuAzQd9guncC0r6Oc8yce+FHjqFpd6tApCLF1IN0KNBfj2k24WEU9JuovwwZ+mbFvKTeZF0O9aXlvuVlrKIS6yfn6Srh22GQJMEhcDMypO8t3AnsKli6vM6J7iUWJuksLf9fOty2ZfJghMOlUHYVcAaXPn2ESReNjSJfHtNOsvIlXsXMznFnTK2WL0115aF0th9Ivxn+t/9onOj6iQALgIYiRSM9tg7zKu1+vglZmU1CKsdzXGGP5P/UVeQFkxjUsYEjEebInfbIl6I246HpLLQIwkqGm/21Ge5hLAEiKYtasoFyRqcc1pWhwj96TMw096pWGrZg89CO8P0U9INhWfHbogT4c07reZpZuSH745thufYQ0CtgJQOlCTQdyilHyZL3d6yDoITNycqMIklnNPRDB9Po5tdD6qzDg7p//OurYx3d5FkhMby6H8/B/79E0+ASh3so5TRP6hiOw== damian@prime8.dev" +SSH_KEY_NAME="moncheeta" + +CGIT_CLONE_PREFIX="git://prime8.dev" +CGIT_ROOT_TITLE="banana recipes" -- 2.43.4