Refactor docker compose so default launches everything

This commit is contained in:
Dave Syer
2015-12-15 09:44:11 +00:00
parent 327bb46e90
commit 28dbb0cd14
16 changed files with 250 additions and 61 deletions

View File

@@ -0,0 +1,15 @@
package example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.sleuth.zipkin.stream.EnableZipkinStreamServer;
@SpringBootApplication
@EnableZipkinStreamServer
public class ZipkinStreamServerApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(ZipkinStreamServerApplication.class, args);
}
}

View File

@@ -0,0 +1,26 @@
server:
port: 9411
spring:
rabbitmq:
host: ${RABBIT_HOST:localhost}
datasource:
schema: classpath:/mysql.sql
url: jdbc:mysql://${MYSQL_HOST:localhost}/test
username: root
password: root
# Switch this on to create the schema on startup:
initialize: true
continueOnError: true
sleuth:
enabled: false
zipkin:
store:
type: mysql # default is inMemory
---
spring:
profiles: test
zipkin:
store:
type: mem # default is inMemory