sudo curl -L "https://github.com/docker/compose/releases/download/v2.1.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 或 sudo curl -L "https://github.com/docker/compose/releases/download/v2.1.0/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose –version
docker-compose -f example/standalone-mysql-5.7.yaml up
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency>
# 应用名称 spring.application.name=eurekaserver server.port=8100 # Eureka CONFIG eureka.instance.hostname=localhost eureka.client.register-with-eureka=true eureka.client.fetch-registry=true eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:${server.port}/eureka/,http://localhost:8100/eureka/