update compose

This commit is contained in:
dzj 2023-10-23 10:00:00 +08:00
parent 3523555354
commit a23ac31046
1 changed files with 18 additions and 0 deletions

View File

@ -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: