Updated local config
This commit is contained in:
1 parent
3429f9511f
commit
6a9b8b080f
1 file changed
-36
@@ -29,41 +29,5 @@
|
||||
listenAddress = "0.0.0.0";
|
||||
enableDelete = true;
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
containers = {
|
||||
myevents-app = {
|
||||
autoStart = true;
|
||||
image = "localhost:5001/asosnovsky/myevents";
|
||||
extraOptions = [ "--gpus" "all" ];
|
||||
ports = [ "8000:80" ];
|
||||
cmd = [ "app" ];
|
||||
environmentFiles = [
|
||||
"/mnt/Data/myevents/app.env"
|
||||
];
|
||||
dependsOn = [ "myevents-db" ];
|
||||
};
|
||||
myevents-cron = {
|
||||
autoStart = true;
|
||||
image = "localhost:5001/asosnovsky/myevents";
|
||||
cmd = [ "cron" ];
|
||||
environmentFiles = [
|
||||
"/mnt/Data/myevents/app.env"
|
||||
];
|
||||
dependsOn = [ "myevents-db" ];
|
||||
};
|
||||
myevents-db = {
|
||||
autoStart = true;
|
||||
image = "docker.io/postgres";
|
||||
hostname = "myevents-db";
|
||||
environmentFiles = [
|
||||
"/mnt/Data/myevents/db.env"
|
||||
];
|
||||
volumes = [
|
||||
"/mnt/Data/myevents/db:/var/lib/postgresql/data"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user