Skip to content

Instantly share code, notes, and snippets.

@benwilcock
Created March 15, 2021 17:34
Show Gist options
  • Save benwilcock/21491b0441699a740c604a8ed98819b6 to your computer and use it in GitHub Desktop.
Save benwilcock/21491b0441699a740c604a8ed98819b6 to your computer and use it in GitHub Desktop.
version: '2'
services:
config-server:
image: benwilcock/spring-petclinic-config-server-native:2.4.3
container_name: config-server
mem_limit: 1024M
ports:
- 8888:8888
environment:
- PORT=8888
- SPRING_PROFILES_ACTIVE=docker
- TRACING_SERVER_URI=http://tracing-server:9411
- GIT_CONFIG_URI=https://github.com/benwilcock/spring-petclinic-microservices-config
discovery-server:
image: benwilcock/spring-petclinic-discovery-server:2.4.3
container_name: discovery-server
mem_limit: 1024M
ports:
- 8761:8761
environment:
- PORT=8761
- SPRING_PROFILES_ACTIVE=docker
- CONFIG_SERVER_URI=http://config-server:8888
- TRACING_SERVER_URI=http://tracing-server:9411
depends_on:
- config-server
visits-service:
image: benwilcock/spring-petclinic-visits-service-native:2.4.3
container_name: visits-service
mem_limit: 1024M
ports:
- 8082:8082
environment:
- PORT=8082
- SPRING_PROFILES_ACTIVE=docker
- CONFIG_SERVER_URI=http://config-server:8888
- DISCOVERY_SERVER_URI=http://discovery-server:8761/eureka
depends_on:
- config-server
- discovery-server
vets-service:
image: benwilcock/spring-petclinic-vets-service-native:2.4.3
container_name: vets-service
mem_limit: 1024M
ports:
- 8083:8083
environment:
- PORT=8083
- SPRING_PROFILES_ACTIVE=docker
- CONFIG_SERVER_URI=http://config-server:8888
- DISCOVERY_SERVER_URI=http://discovery-server:8761/eureka
depends_on:
- config-server
- discovery-server
customers-service:
image: benwilcock/spring-petclinic-customers-service-native:2.4.3
container_name: customers-service
mem_limit: 1024M
ports:
- 8081:8081
environment:
- PORT=8081
- SPRING_PROFILES_ACTIVE=docker
- CONFIG_SERVER_URI=http://config-server:8888
- DISCOVERY_SERVER_URI=http://discovery-server:8761/eureka
depends_on:
- config-server
- discovery-server
gateway-service:
image: benwilcock/spring-petclinic-api-gateway:2.4.3
container_name: gateway-service
mem_limit: 1024M
ports:
- 8080:8080
environment:
- PORT=8080
- SPRING_PROFILES_ACTIVE=docker
- CONFIG_SERVER_URI=http://config-server:8888
- DISCOVERY_SERVER_URI=http://discovery-server:8761/eureka
depends_on:
- config-server
- discovery-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment