renew-anon-volumes

This commit is contained in:
moafak 2021-02-22 17:06:21 -05:00
parent 415b14fb10
commit a0aa2c57ba
2 changed files with 16 additions and 14 deletions

View file

@ -35,6 +35,7 @@ commandTemplates:
viewServiceLogs: '{{ .DockerCompose }} logs --follow {{ .Service.Name }}'
rebuildService: '{{ .DockerCompose }} up -d --build {{ .Service.Name }}'
recreateService: '{{ .DockerCompose }} up -d --force-recreate {{ .Service.Name }}'
recreateServiceDropVolumes: '{{ .DockerCompose }} up -d --force-recreate --renew-anon-volumes {{ .Service.Name }}'
viewContainerLogs: docker logs --timestamps --follow --since=60m {{ .Container.ID
}}
containerLogs: docker logs --timestamps --follow --since=60m {{ .Container.ID }}

View file

@ -329,6 +329,7 @@ func GetDefaultConfig() UserConfig {
RestartService: "{{ .DockerCompose }} restart {{ .Service.Name }}",
RebuildService: "{{ .DockerCompose }} up -d --build {{ .Service.Name }}",
RecreateService: "{{ .DockerCompose }} up -d --force-recreate {{ .Service.Name }}",
RecreateServiceDropVolumes:"{{ .DockerCompose }} up -d --force-recreate --renew-anon-volumes {{ .Service.Name }}",
StopService: "{{ .DockerCompose }} stop {{ .Service.Name }}",
ServiceLogs: "{{ .DockerCompose }} logs --since=60m --follow {{ .Service.Name }}",
ViewServiceLogs: "{{ .DockerCompose }} logs --follow {{ .Service.Name }}",