feat(solidtime): Preload Docker images
This commit is contained in:
parent
84c94afda4
commit
687b85eeef
1 changed files with 35 additions and 7 deletions
|
|
@ -18,6 +18,15 @@ let
|
||||||
|
|
||||||
inherit (config.virtualisation.oci-containers) containers;
|
inherit (config.virtualisation.oci-containers) containers;
|
||||||
|
|
||||||
|
solidtimeImageName = "solidtime/solidtime";
|
||||||
|
solidtimeImage = "${solidtimeImageName}:${version}";
|
||||||
|
solidtimeImageFile = pkgs.dockerTools.pullImage {
|
||||||
|
imageName = solidtimeImageName;
|
||||||
|
finalImageTag = version;
|
||||||
|
imageDigest = "sha256:5601b81f63ece49cdc4110f90f7624b0cc4ba87448b3e4bddce904457822a4ef";
|
||||||
|
sha256 = "sha256-/VwuJGczs41XeItNamLahLt/ypUQHTn9AcwneVw/3YY=";
|
||||||
|
};
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"solidtime-storage:/var/www/html/storage"
|
"solidtime-storage:/var/www/html/storage"
|
||||||
"solidtime-logs:/var/www/html/storage/logs"
|
"solidtime-logs:/var/www/html/storage/logs"
|
||||||
|
|
@ -124,7 +133,8 @@ in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
solidtime = {
|
solidtime = {
|
||||||
hostname = "solidtime";
|
hostname = "solidtime";
|
||||||
image = "solidtime/solidtime:${version}";
|
image = solidtimeImage;
|
||||||
|
imageFile = solidtimeImageFile;
|
||||||
inherit user;
|
inherit user;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
|
|
@ -158,7 +168,8 @@ in {
|
||||||
};
|
};
|
||||||
solidtimeScheduler = {
|
solidtimeScheduler = {
|
||||||
hostname = "scheduler";
|
hostname = "scheduler";
|
||||||
image = "solidtime/solidtime:${version}";
|
image = solidtimeImage;
|
||||||
|
imageFile = solidtimeImageFile;
|
||||||
inherit user;
|
inherit user;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
|
|
@ -182,7 +193,8 @@ in {
|
||||||
};
|
};
|
||||||
solidtimeQueue = {
|
solidtimeQueue = {
|
||||||
hostname = "queue";
|
hostname = "queue";
|
||||||
image = "solidtime/solidtime:${version}";
|
image = solidtimeImage;
|
||||||
|
imageFile = solidtimeImageFile;
|
||||||
inherit user;
|
inherit user;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
networks = [
|
networks = [
|
||||||
|
|
@ -205,9 +217,17 @@ in {
|
||||||
WORKER_COMMAND = "php /var/www/html/artisan queue:work";
|
WORKER_COMMAND = "php /var/www/html/artisan queue:work";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
solidtimeDb = {
|
solidtimeDb = let
|
||||||
|
imageName = "postgres";
|
||||||
|
finalImageTag = "15";
|
||||||
|
in {
|
||||||
hostname = "database";
|
hostname = "database";
|
||||||
image = "postgres:15";
|
image = "${imageName}:${finalImageTag}";
|
||||||
|
imageFile = pkgs.dockerTools.pullImage {
|
||||||
|
inherit imageName finalImageTag;
|
||||||
|
imageDigest = "sha256:98fe06b500b5eb29e45bf8c073eb0ca399790ce17b1d586448edc4203627d342";
|
||||||
|
sha256 = "sha256-AZ4VkOlROX+nR/MjDjsA4xdHzmtKjiBAtsp2Q6IdOvg=";
|
||||||
|
};
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ports = [
|
ports = [
|
||||||
# "${toString dbExternalPort}:${toString dbInternalPort}"
|
# "${toString dbExternalPort}:${toString dbInternalPort}"
|
||||||
|
|
@ -232,9 +252,17 @@ in {
|
||||||
POSTGRES_PASSWORD = laravelEnv.DB_PASSWORD;
|
POSTGRES_PASSWORD = laravelEnv.DB_PASSWORD;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
solidtimeGotenberg = {
|
solidtimeGotenberg = let
|
||||||
|
imageName = "gotenberg/gotenberg";
|
||||||
|
finalImageTag = "8.26.0";
|
||||||
|
in {
|
||||||
hostname = "gotenberg";
|
hostname = "gotenberg";
|
||||||
image = "gotenberg/gotenberg:8";
|
image = "${imageName}:${finalImageTag}";
|
||||||
|
imageFile = pkgs.dockerTools.pullImage {
|
||||||
|
inherit imageName finalImageTag;
|
||||||
|
imageDigest = "sha256:328551506b3dec3ff6381dd47e5cd72a44def97506908269e201a8fbfa1c12c0";
|
||||||
|
sha256 = "sha256-1zz4xDAgXxHUnkCVIfjHTgXb82EFEx+5am6Cu9+eZj4=";
|
||||||
|
};
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
networks = [
|
networks = [
|
||||||
internalNetworkName
|
internalNetworkName
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue