Skip to content

Commit

Permalink
WIP docs
Browse files Browse the repository at this point in the history
  • Loading branch information
n0npax committed May 26, 2023
1 parent 6cbd4d6 commit 4b64223
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cli/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ func addExternalNetwork(filePath string) error {
"driver": "bridge",
},
"o11y": {
"external": true,
"name": "o11y",
"attachable": true,
},
}
return writeDockerCompose(filePath, composeMap)
Expand Down
34 changes: 34 additions & 0 deletions multi-compose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# multi docker-compose setup

In some cases user may want to integrate theirs own `docker-compose` with `run-o11-run`.

To achieve this goal, please run `run-o11y-run` with `--external-network` flag

```sh
run-o11y-run start --external-network
```

and modify your dockerfile to use `o11y` network like:

```yaml
networks:
o11y:
name: o11y
driver: bridge
external: true

services:
foo:
image: ...
networks:
- o11y
environments:
- OTEL_EXPORTER_OTLP_ENDPOINT: run-o11y-run-otel-collector:43..

bar:
image: ...
networks:
- o11y
environemnts:
- OTEL_EXPORTER_OTLP_ENDPOINT: run-o11y-run-otel-collector:43..
```

0 comments on commit 4b64223

Please sign in to comment.