Use 'docker compose' by default · jesseduffield/lazydocker@df6c8c1 (original) (raw)

`@@ -168,7 +168,7 @@ type CommandTemplatesConfig struct {

`

168

168

``

169

169

`// DockerCompose is for your docker-compose command. You may want to combine a

`

170

170

`// few different docker-compose.yml files together, in which case you can set

`

171

``

`-

// this to "docker-compose -f foo/docker-compose.yml -f

`

``

171

`+

// this to "docker compose -f foo/docker-compose.yml -f

`

172

172

`// bah/docker-compose.yml". The reason that the other docker-compose command

`

173

173

`// templates all start with {{ .DockerCompose }} is so that they can make use

`

174

174

`// of whatever you've set in this value rather than you having to copy and

`

`@@ -200,7 +200,7 @@ type CommandTemplatesConfig struct {

`

200

200

`// and ensure they're running before trying to run the service at hand

`

201

201

`` RecreateService string yaml:"recreateService,omitempty"

``

202

202

``

203

``

`` -

// AllLogs is for showing what you get from doing docker-compose logs. It

``

``

203

`` +

// AllLogs is for showing what you get from doing docker compose logs. It

``

204

204

`// combines all the logs together

`

205

205

`` AllLogs string yaml:"allLogs,omitempty"

``

206

206

``

`@@ -385,7 +385,7 @@ func GetDefaultConfig() UserConfig {

`

385

385

`Tail: "",

`

386

386

` },

`

387

387

`CommandTemplates: CommandTemplatesConfig{

`

388

``

`-

DockerCompose: "docker-compose",

`

``

388

`+

DockerCompose: "docker compose",

`

389

389

`RestartService: "{{ .DockerCompose }} restart {{ .Service.Name }}",

`

390

390

`StartService: "{{ .DockerCompose }} start {{ .Service.Name }}",

`

391

391

`Up: "{{ .DockerCompose }} up -d",

`

`@@ -502,7 +502,7 @@ func NewAppConfig(name, version, commit, date string, buildSource string, debugg

`

502

502

`return nil, err

`

503

503

` }

`

504

504

``

505

``

`-

// Pass compose files as individual -f flags to docker-compose

`

``

505

`+

// Pass compose files as individual -f flags to docker compose

`

506

506

`if len(composeFiles) > 0 {

`

507

507

`userConfig.CommandTemplates.DockerCompose += " -f " + strings.Join(composeFiles, " -f ")

`

508

508

` }

`