Advertisement
fedorm

fedorm

Jan 16th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.13 KB | None | 0 0
  1. version: '2'
  2. services:
  3.   redis:
  4.     image: redis:4-alpine
  5.     ports:
  6.    - 6379:6379
  7.  
  8.   consul:
  9.     image: consul
  10.     ports:
  11.    - 8500:8500
  12.     command: ["agent", "-dev", "-ui", "-http-port","8500", "-client", "0.0.0.0"]
  13.  
  14.   gateway:
  15.     image: artifactory.setmachine.ru:5000/gateway-lp
  16.     environment:
  17.    - TZ="Europe/Moscow"
  18.     - spring.cloud.consul.port=8500
  19.     - spring.cloud.consul.discovery.register=true
  20.     depends_on:
  21.    - consul
  22.     ports:
  23.    - '8080'
  24.  
  25.   processing:
  26.     environment:
  27.    - TZ="Europe/Moscow"
  28.     - CONSUL_HOST=consul
  29.     - CONSUL_PORT=8500
  30.     - REDIS_TTL_RESERVED=120
  31.     - redis.connections.restriction.simple.host=redis
  32.     - redis.connections.restriction.simple.port=6379
  33.     - redis.connections.reservation.simple.host=redis
  34.     - redis.connections.reservation.simple.port=6379
  35.     - cache.actions.eviction.millis=2000
  36.     image: artifactory.setmachine.ru:5000/counters-restriction-processing
  37.     command: ["java", "-Dspring.profiles.active=dev", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/processing.jar"]
  38.     depends_on:
  39.    - consul
  40.     - redis
  41.     ports:
  42.    - 8787:8787
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement