Skip to content

Instantly share code, notes, and snippets.

@dsyer
Last active February 20, 2016 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsyer/5a99b9f15e96da3f1fcc to your computer and use it in GitHub Desktop.
Save dsyer/5a99b9f15e96da3f1fcc to your computer and use it in GitHub Desktop.
Example fig.yml for 2 services that want to chat over HTTP
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