Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Nov 20, 2024
1 parent 2d1320f commit df6c0d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# pipemgr

Connect container logs to pipe.pico.sh
Send container logs to [pipe](https://pipe.pico.sh) using a docker image.

To enable, apply the `pipemgr` label to any service in your `docker-compose.yml` file:

```yaml
services:
httpbin:
image: kennethreitz/httpbin
label:
pipemgr: true
```
This will send all stdout/stderr from `httpbin` to `pipe` or any other SSH
service.
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:
- 8080:8080
labels:
pipemgr.enable: false
pipemgr: 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.enable"]; ok {
if enabledRaw, ok := containerInfo.Config.Labels["pipemgr"]; ok {
if enabledRaw == "true" {
isEnabled = true
}
Expand Down

0 comments on commit df6c0d3

Please sign in to comment.