fix docker-compose version

This commit is contained in:
nicolas.dorier
2018-03-19 23:31:05 +09:00
parent a3e2d5ea9c
commit bbe1827d80
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
version: 3 version: "3"
services: services:
nginx: nginx:
restart: always restart: always

View File

@@ -1,4 +1,4 @@
version: 3 version: "3"
services: services:
nginx: nginx:
restart: always restart: always

View File

@@ -1,4 +1,4 @@
version: 3 version: "3"
services: services:
nginx: nginx:
restart: always restart: always

View File

@@ -61,7 +61,7 @@ namespace DockerGenerator
YamlMappingNode output = new YamlMappingNode(); YamlMappingNode output = new YamlMappingNode();
output.Add("version", new YamlScalarNode("3")); output.Add("version", new YamlScalarNode("3") { Style = YamlDotNet.Core.ScalarStyle.DoubleQuoted });
output.Add("services", new YamlMappingNode(Merge(services))); output.Add("services", new YamlMappingNode(Merge(services)));
output.Add("volumes", new YamlMappingNode(volumes)); output.Add("volumes", new YamlMappingNode(volumes));
var result = serializer.Serialize(output); var result = serializer.Serialize(output);