diff --git a/compose.yml b/compose.yml index 5f5280e..3a05157 100644 --- a/compose.yml +++ b/compose.yml @@ -38,6 +38,24 @@ services: command: redis-server --requirepass "12345678" volumes: - d:/docker-data/redis:/data + + consul: + image: docker.io/bitnami/consul:latest + container_name: consul01 + restart: always + extra_hosts: + - "host.docker.internal:host-gateway" + networks: + - y9-share-net + volumes: + - d:/docker-data/consul:/bitnami/consul + ports: + - '8300:8300' + - '8301:8301' + - '8301:8301/udp' + - '8500:8500' + - '8600:8600' + - '8600:8600/udp' networks: y9-share-net: