Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
6a444cbb
Commit
6a444cbb
authored
Sep 27, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Docker setup for easier testing of complex scenarios
parent
9304e6a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
116 additions
and
4 deletions
+116
-4
docker-compose.yml
...amples/spring-boot-admin-sample-eureka/docker-compose.yml
+105
-0
Dockerfile
...pring-boot-admin-sample-eureka/src/main/docker/Dockerfile
+6
-0
application.yml
...ot-admin-sample-eureka/src/main/resources/application.yml
+5
-4
No files found.
spring-boot-admin-samples/spring-boot-admin-sample-eureka/docker-compose.yml
0 → 100644
View file @
6a444cbb
version
:
'
2'
services
:
eureka
:
image
:
springcloud/eureka
container_name
:
eureka
ports
:
-
"
8761:8761"
networks
:
-
"
discovery"
environment
:
-
EUREKA_INSTANCE_PREFERIPADDRESS=true
admin
:
build
:
context
:
.
dockerfile
:
./src/main/docker/Dockerfile
depends_on
:
-
eureka
container_name
:
admin
ports
:
-
"
8080:8080"
networks
:
-
"
discovery"
environment
:
-
EUREKA_SERVICE_URL=http://eureka:8761
-
EUREKA_INSTANCE_PREFER_IP_ADDRESS=true
-
LOGGING_FILE=/tmp/admin.log
config
:
image
:
springcloud/configserver
container_name
:
config
depends_on
:
-
eureka
ports
:
-
"
8888:8888"
networks
:
-
"
discovery"
environment
:
-
EUREKA_SERVICE_URL=http://eureka:8761
-
EUREKA_INSTANCE_PREFER_IP_ADDRESS=true
customers
:
image
:
springcloud/customers
depends_on
:
-
config
-
rabbit
networks
:
-
"
discovery"
environment
:
-
EUREKA_INSTANCE_PREFER_IP_ADDRESS=true
-
CONFIG_SERVER_URI=http://config:8888
-
RABBITMQ_HOST=rabbit
-
RABBITMQ_PORT=5672
stores
:
image
:
springcloud/stores
depends_on
:
-
config
-
rabbit
-
mongodb
networks
:
-
"
discovery"
environment
:
-
EUREKA_INSTANCE_PREFER_IP_ADDRESS=true
-
CONFIG_SERVER_URI=http://config:8888
-
RABBITMQ_HOST=rabbit
-
RABBITMQ_PORT=5672
-
MONGODB_HOST=mongodb
-
MONGODB_PORT=27017
customersui
:
image
:
springcloud/customersui
depends_on
:
-
config
-
customers
-
stores
ports
:
-
"
80:80"
links
:
-
"
config"
networks
:
-
"
discovery"
environment
:
-
SERVER_PORT=80
-
EUREKA_INSTANCE_PREFER_IP_ADDRESS=true
-
CONFIG_SERVER_URI=http://config:8888
mongodb
:
image
:
tutum/mongodb
container_name
:
mongodb
networks
:
-
"
discovery"
environment
:
-
AUTH=no
rabbit
:
image
:
"
rabbitmq:3"
container_name
:
rabbit
networks
:
-
"
discovery"
networks
:
discovery
:
spring-boot-admin-samples/spring-boot-admin-sample-eureka/src/main/docker/Dockerfile
0 → 100644
View file @
6a444cbb
FROM
java:7
VOLUME
/tmp
ADD
target/spring-boot-admin-sample-eureka.jar /app.jar
RUN
bash
-c
'touch /app.jar'
EXPOSE
8080
ENTRYPOINT
["java","-jar","/app.jar"]
spring-boot-admin-samples/spring-boot-admin-sample-eureka/src/main/resources/application.yml
View file @
6a444cbb
...
...
@@ -7,10 +7,11 @@ spring:
# tag::configuration-eureka[]
eureka
:
instance
:
leaseRenewalIntervalInSeconds
:
5
client
:
serviceUrl
:
defaultZone
:
http://localhost:8761/eureka/
leaseRenewalIntervalInSeconds
:
10
client
:
registryFetchIntervalSeconds
:
5
serviceUrl
:
defaultZone
:
${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
# end::configuration-eureka[]
# tag::configuration-ui-hystrix[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment