From c696984b0542d7a72fecc974b383a81eba63ace7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 25 Jul 2022 17:04:03 +0100 Subject: [PATCH] docker registry --- nixos/boxes/vpsfree1/default.nix | 6 ++++++ nixos/common.nix | 3 +++ 2 files changed, 9 insertions(+) diff --git a/nixos/boxes/vpsfree1/default.nix b/nixos/boxes/vpsfree1/default.nix index 31606838..2ab83303 100644 --- a/nixos/boxes/vpsfree1/default.nix +++ b/nixos/boxes/vpsfree1/default.nix @@ -13,6 +13,12 @@ ./syncthing-relay.nix ]; + services.dockerRegistry = { + enable = true; + listenAddress = "vpsfree1.raptor-carp.ts.net"; + enableGarbageCollect = true; + }; + systemd.extraConfig = '' DefaultTimeoutStartSec=900s ''; diff --git a/nixos/common.nix b/nixos/common.nix index 445149c8..790aa527 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -58,6 +58,9 @@ virtualisation.docker = { enable = true; autoPrune.enable = true; + daemon.settings = { + "insecure-registries" = [ "vpsfree1.raptor-carp.ts.net:5000" ]; + }; }; fonts.fontconfig = {