version: '3'
services:
consul:
image: consul:latest
ports:
- "8400:8400"
- "8500:8500"
- "8600:8600"
- "8600:8600/udp"
command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0"
registrator:
image: gliderlabs/registrator:latest
network_mode: "host"
depends_on:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
command: consul://localhost:8500
networks:
default:
ipam:
config:
- subnet: "172.30.0.0/16"
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00