This commit is contained in:
2023-04-28 09:44:08 +08:00
parent 5b5a4c64d9
commit 48a83da2e1

View File

@@ -0,0 +1,21 @@
version: '3'
services:
consul:
image: consul
container_name: consul
ports:
- "8500:8500"
restart: unless-stopped
volumes:
- ./data:/consul/data
- ./config:/consul/config
command: "agent -server -ui -bootstrap-expect=1 -client=0.0.0.0"
networks:
nginx:
aliases:
- consul
networks:
nginx:
external: true