Skip to content

Commit

Permalink
Remove incompatible network_mode from example config (#613)
Browse files Browse the repository at this point in the history
"host" network mode is incompatible with port binding. The port binding example
also shows a restriction to just accepting connections from localhost, which I
don't think we want if the encoder is across the network and not running on the
same machine that the wg-encoder agent is running.
  • Loading branch information
BrianJKoopman authored Jan 11, 2024
1 parent bab96fe commit be59fa4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/agents/wiregrid_encoder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,14 @@ An example docker-compose configuration::
image: simonsobs/socs:latest
restart: always
hostname: ocs-docker
network_mode: "host"
environment:
- INSTANCE_ID=wgencoder
volumes:
- ${OCS_CONFIG_DIR}:/config:ro
- "/data/wg-data:/data/wg-data"
ports:
- "localhost:50007:50007/udp"
- "50007:50007/udp"

- Since the agent within the container needs to communicate with hardware on the
host network you must use ``network_mode: "host"`` in your compose file.
- ``/data/wg-data`` is a directory to store
the information of the current angle of the wire-grid rotation,
which is used in ``Wiregrid Kikusui Agent`` for feedback control of the rotation.
Expand Down

0 comments on commit be59fa4

Please sign in to comment.