File tree 2 files changed +8
-9
lines changed
packages/server/src/services
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,9 @@ export const removeCompose = async (
478
478
const projectPath = join ( COMPOSE_PATH , compose . appName ) ;
479
479
480
480
if ( compose . composeType === "stack" ) {
481
- const command = `cd ${ projectPath } && docker stack rm ${ compose . appName } && rm -rf ${ projectPath } ` ;
481
+ const command = `
482
+ docker network disconnect ${ compose . appName } dokploy-traefik;
483
+ cd ${ projectPath } && docker stack rm ${ compose . appName } && rm -rf ${ projectPath } ` ;
482
484
483
485
if ( compose . serverId ) {
484
486
await execAsyncRemote ( compose . serverId , command ) ;
@@ -489,12 +491,11 @@ export const removeCompose = async (
489
491
cwd : projectPath ,
490
492
} ) ;
491
493
} else {
492
- let command : string ;
493
- if ( deleteVolumes ) {
494
- command = `cd ${ projectPath } && docker compose -p ${ compose . appName } down --volumes && rm -rf ${ projectPath } ` ;
495
- } else {
496
- command = `cd ${ projectPath } && docker compose -p ${ compose . appName } down && rm -rf ${ projectPath } ` ;
497
- }
494
+ const command = `
495
+ docker network disconnect ${ compose . appName } dokploy-traefik;
496
+ cd ${ projectPath } && docker compose -p ${ compose . appName } down ${
497
+ deleteVolumes ? "--volumes" : ""
498
+ } && rm -rf ${ projectPath } `;
498
499
499
500
if ( compose . serverId ) {
500
501
await execAsyncRemote ( compose . serverId , command ) ;
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ export const getServiceImageDigest = async () => {
40
40
"docker service inspect dokploy --format '{{.Spec.TaskTemplate.ContainerSpec.Image}}'" ,
41
41
) ;
42
42
43
- console . log ( "stdout" , stdout ) ;
44
-
45
43
const currentDigest = stdout . trim ( ) . split ( "@" ) [ 1 ] ;
46
44
47
45
if ( ! currentDigest ) {
You can’t perform that action at this time.
0 commit comments