diff --git a/dotfiles/.config/containers/registries.conf b/dotfiles/.config/containers/registries.conf new file mode 100644 index 0000000..404f31d --- /dev/null +++ b/dotfiles/.config/containers/registries.conf @@ -0,0 +1,2 @@ +[registries.search] +registries = ['quay.io', 'ghcr.io', 'registry.fedoraproject.org', 'registry.centos.org', 'docker.io'] diff --git a/dotfiles/.config/containers/storage.conf b/dotfiles/.config/containers/storage.conf new file mode 100644 index 0000000..3fc7f79 --- /dev/null +++ b/dotfiles/.config/containers/storage.conf @@ -0,0 +1,4 @@ +[storage] + driver = "overlay" + runroot = "/run/user/1000" + graphroot = "/home/vladan/.local/share/containers/storage" diff --git a/dotfiles/.config/containers/systemd/forgejo.container b/dotfiles/.config/containers/systemd/forgejo.container new file mode 100644 index 0000000..2f1d2c4 --- /dev/null +++ b/dotfiles/.config/containers/systemd/forgejo.container @@ -0,0 +1,18 @@ +[Unit] +Description=Forgejo: Beyond coding. We forge. +After=network-online.target +Wants=network-online.target + +[Service] +TimeoutStartSec=60 + +[Container] +ContainerName=forgejo +Image=codeberg.org/forgejo/forgejo:1.21.5-0 +Volume=/tmp/forgejo:/data:z +PublishPort=3000:3000 +PublishPort=3022:22 + +[Install] +# Start by default on boot +WantedBy=multi-user.target default.target