Skip to content

Commit 8688611

Browse files
committed
fix: incorrect config volume path
1 parent 2d2a450 commit 8688611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/compose/compose.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func SetNodeVolume() Option {
8888
ContainerName: v.ContainerName,
8989
Image: v.Image,
9090
Environment: v.Environment,
91-
Volumes: []string{"./config:/etc/rss3"},
91+
Volumes: []string{"${PWD}/config:/etc/rss3/node"},
9292
Command: v.Command,
9393
}
9494
}
@@ -106,7 +106,7 @@ func SetRestartPolicy() Option {
106106
ContainerName: v.ContainerName,
107107
Image: v.Image,
108108
Environment: v.Environment,
109-
Volumes: []string{"${PWD}/config:/etc/rss3/node"},
109+
Volumes: v.Volumes,
110110
Command: v.Command,
111111
Restart: "unless-stopped",
112112
}

0 commit comments

Comments
 (0)