Skip to content

Commit

Permalink
Fixed typo in script and cleaned up docker-compose.yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Jun 7, 2016
1 parent 7858ff0 commit 37375da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build-and-test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ echo ================== Test the services launched with Docker Compose

echo ================== Test the services packaged as Docker images

./run-test-e2e-test-images.sh
./run-e2e-test-images.sh
3 changes: 0 additions & 3 deletions docker-compose-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ web:
environment:
USER_REGISTRATION_URL: http://REGISTRATION-SERVICE/user
SPRING_APPLICATION_NAME: registration-web
# For some reason this didn't work
# EUREKA_CLIENT_SERVICE_URL_DEFAULT_ZONE: http://eureka:8761/eureka/
# EUREKA_INSTANCE_NON_SECURE_PORT: 8080
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_PROFILES_ACTIVE: enableEureka
15 changes: 6 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ restfulservice:
working_dir: /app
volumes:
- ./spring-boot-restful-service/build/libs:/app
command: java -jar /app/spring-boot-restful-service.jar --spring.profiles.active=enableEureka --eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/
command: java -jar /app/spring-boot-restful-service.jar
ports:
- "8081:8080"
links:
Expand All @@ -35,26 +35,23 @@ restfulservice:
SPRING_DATA_MONGODB_URI: mongodb://mongodb/userregistration
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_APPLICATION_NAME: registration-service
# For some reason this didn't work
# EUREKA_CLIENT_SERVICE_URL_DEFAULT_ZONE: http://eureka:8761/
# EUREKA_INSTANCE_NON_SECURE_PORT: 8080
# EUREKA_INSTANCE_NON_SECURE_PORT: 8081
SPRING_PROFILES_ACTIVE: enableEureka
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/

web:
image: java:openjdk-8u91-jdk
working_dir: /app
volumes:
- ./spring-boot-webapp/build/libs:/app
command: java -jar /app/spring-boot-webapp.jar --spring.profiles.active=enableEureka --eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/
command: java -jar /app/spring-boot-webapp.jar
ports:
- "8080:8080"
links:
- eureka
environment:
USER_REGISTRATION_URL: http://REGISTRATION-SERVICE/user
SPRING_APPLICATION_NAME: registration-web
# For some reason this didn't work
# EUREKA_CLIENT_SERVICE_URL_DEFAULT_ZONE: http://eureka:8761/eureka/
# EUREKA_INSTANCE_NON_SECURE_PORT: 8080
SPRING_PROFILES_ACTIVE: enableEureka
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/

0 comments on commit 37375da

Please sign in to comment.