anton-rs / op-up

Composable OP Stack Orchestration
https://stack.anton.systems
MIT License
41 stars 2 forks source link

feat(composer): Docker network #76

Closed merklefruit closed 1 year ago

merklefruit commented 1 year ago

We should add a Docker network for services to communicate with each other without the need to bind ports on the host. Moreover, this will allow for communication via container names, e.g. ws://opup-l1:8586.

The Composer should create a network tagged with the same label as other opup components: com.docker.compose.project=op-up. By default each new container should be part of the same opup-net network but this should be configurable via the create_container function arguments.