Hi Guys
I need help in figuring out what I’m missing. I’m trying to run consul inside swarm.
The command I’ve used - docker stack deploy -c docker-compose.yml nodeconsul
Here is my docker-compose.yml
version: ‘3’
services:
consul-server:
image: consul:1.4.0
environment:
CONSUL_LOCAL_CONFIG: ‘{ “connect”: { “enabled”: true }}’
command: [“agent”, “-ui”, “-client=0.0.0.0”, “-bind=0.0.0.0”, “-data-dir=/consul/data”, “-server”, “-bootstrap-expect=1”, “-config-dir=/etc/consul.d” ]
volumes:
- ./consul-server/consul.d:/etc/consul.d
ports:
- 8500:8500
registrator:
image: gliderlabs/registrator:latest
command: “-ip {MYHOST} consul://{MYHOST}:8500”
depends_on:
- consul-server
volumes:
- /var/run/docker.sock:/tmp/docker.sock
I’ve attached some screenshot. Many Thkx