Last active
February 20, 2016 14:09
-
-
Save dsyer/5a99b9f15e96da3f1fcc to your computer and use it in GitHub Desktop.
Example fig.yml for 2 services that want to chat over HTTP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configserver: | |
image: dsyer/java | |
volumes: | |
- ./configserver:/var/run/app | |
command: bash -c 'java -jar /var/run/app/target/*.jar' | |
links: | |
- eureka | |
environment: | |
- SPRING_PROFILES_ACTIVE=docker | |
ports: | |
- "8888:8888" | |
eureka: | |
image: dsyer/java | |
volumes: | |
- ./eureka:/var/run/app | |
command: bash -c 'java -jar /var/run/app/target/*.jar' | |
environment: | |
- SPRING_PROFILES_ACTIVE=docker | |
ports: | |
- "8761:8761" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment