Skip to content

Instantly share code, notes, and snippets.

@by-sabbir
Last active October 3, 2022 11:20
Show Gist options
  • Save by-sabbir/af5d044e150f197ee5bb4e636a6f5bb0 to your computer and use it in GitHub Desktop.
Save by-sabbir/af5d044e150f197ee5bb4e636a6f5bb0 to your computer and use it in GitHub Desktop.
single server consul docker compose
version: "3"
services:
consul:
image: hashicorp/consul:1.10.0
restart: always
volumes:
- ./conf/server.json:/consul/config/server.json:ro
ports:
- 8500:8500
- 8600:8600/tcp
- 8600:8600/udp
command: "agent"
environment:
- CONSUL_BIND_INTERFACE=eth0
- CONSUL_CLIENT_INTERFACE=eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment