update compose file format from 3.4 to 3.8

resolves docker stack deploy error:
networks.default Additional property name is not allowed
This commit is contained in:
Kiara Grouwstra 2024-08-03 18:30:19 +00:00
parent 236f9dd82d
commit 5db1a2d24f
4 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@
] ]
} }
}, },
"version": "3.4", "version": "3.8",
"volumes": {}, "volumes": {},
"x-arion": { "x-arion": {
"images": [ "images": [

View file

@ -17,7 +17,7 @@
"volumes": [] "volumes": []
} }
}, },
"version": "3.4", "version": "3.8",
"volumes": {}, "volumes": {},
"x-arion": { "x-arion": {
"images": [ "images": [

View file

@ -21,7 +21,7 @@
] ]
} }
}, },
"version": "3.4", "version": "3.8",
"x-arion": { "x-arion": {
"images": [ "images": [
{ {

View file

@ -75,7 +75,7 @@ in
out.dockerComposeYamlAttrs = config.assertWarn config.docker-compose.raw; out.dockerComposeYamlAttrs = config.assertWarn config.docker-compose.raw;
docker-compose.raw = { docker-compose.raw = {
version = "3.4"; version = "3.8";
services = lib.mapAttrs (k: c: c.out.service) config.services; services = lib.mapAttrs (k: c: c.out.service) config.services;
x-arion = config.docker-compose.extended; x-arion = config.docker-compose.extended;
volumes = config.docker-compose.volumes; volumes = config.docker-compose.volumes;