From a23ac31046da5e3f48d91c508ea8783c3c1def96 Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Mon, 23 Oct 2023 10:00:00 +0800 Subject: [PATCH] update compose --- compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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: