Skip to content

Commit

Permalink
fix: use label with period
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Nov 21, 2024
1 parent b01a69d commit a477920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
ports:
- 3000:3000
labels:
pipemgr: true
pipemgr.enable: true
depends_on:
pipemgr:
condition: service_healthy
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func containerStart(ctx context.Context, logger *slog.Logger, client *client.Cli
)

isEnabled := false
if enabledRaw, ok := containerInfo.Config.Labels["pipemgr"]; ok {
if enabledRaw, ok := containerInfo.Config.Labels["pipemgr.enable"]; ok {
if enabledRaw == "true" {
isEnabled = true
}
Expand Down

0 comments on commit a477920

Please sign in to comment.