ci(consul): 更新consul服务启动命令为server模式
修改docker-compose.yml中consul服务的启动命令,添加-server和-bootstrap-expect=1参数以启用server模式
This commit is contained in:
parent
a44ac35f39
commit
3eaf044dd8
@ -14,7 +14,7 @@ services:
|
|||||||
- "8600:8600/udp" # DNS服务
|
- "8600:8600/udp" # DNS服务
|
||||||
volumes:
|
volumes:
|
||||||
- ./consul/config/${ENV_CONFIG_DIR}:/consul/config
|
- ./consul/config/${ENV_CONFIG_DIR}:/consul/config
|
||||||
command: "consul agent ${CONSUL_DEV_MODE} -config-dir=/consul/config -client=0.0.0.0"
|
command: "consul agent -server -bootstrap-expect=1 ${CONSUL_DEV_MODE} -config-dir=/consul/config -client=0.0.0.0"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -92,19 +92,19 @@ services:
|
|||||||
# environment:
|
# environment:
|
||||||
# - SERVICE_NAME=recommend-service
|
# - SERVICE_NAME=recommend-service
|
||||||
|
|
||||||
# user-service:
|
# user-service:
|
||||||
# build: ./services/user-service
|
# build: ./services/user-service
|
||||||
# container_name: ari-user-service
|
# container_name: ari-user-service
|
||||||
# restart: always
|
# restart: always
|
||||||
# depends_on:
|
# depends_on:
|
||||||
# consul:
|
# consul:
|
||||||
# condition: service_healthy
|
# condition: service_healthy
|
||||||
# expose:
|
# expose:
|
||||||
# - "8004"
|
# - "8004"
|
||||||
# networks:
|
# networks:
|
||||||
# - microservice-network
|
# - microservice-network
|
||||||
# environment:
|
# environment:
|
||||||
# - SERVICE_NAME=user-service
|
# - SERVICE_NAME=user-service
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build: ./services/frontend
|
build: ./services/frontend
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user