Advertisement
fedorm

fedorm

Dec 27th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.43 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4.   consul:
  5.     image: consul
  6.     ports:
  7.       - ${CONSUL_PORT}:${CONSUL_PORT}
  8.     command: ["agent", "-dev", "-ui", "-http-port","${CONSUL_PORT}", "-client", "0.0.0.0"]
  9.  
  10.   gateway:
  11.     image: artifactory.setmachine.ru:5000/gateway-lp
  12.     environment:
  13.       TZ: "Europe/Moscow"
  14.     depends_on:
  15.       - consul
  16.     ports:
  17.       - 8090:8090
  18.  
  19.   crud-service:
  20.     container_name: coupon-processing-crud-service
  21.     environment:
  22.       - CONSUL_HOST=${CONSUL_HOST}
  23.       - CONSUL_PORT=${CONSUL_PORT}
  24.       - database.host=${DB_HOST}
  25.       - database.username=${DB_USER}
  26.       - database.password=${DB_PASSWORD}
  27.       - database.name=${DB_NAME}
  28.     image: artifactory.setmachine.ru:5000/coupon-processing/crud-service:${DOCKER_TAG}
  29.     command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/crud-service.jar"]
  30.     ports:
  31.       - 8888:8080
  32.       - 8788:8787
  33.     depends_on:
  34.       - consul
  35.       - psql
  36.     logging:
  37.       options:
  38.         max-size: "10m"
  39.         max-file: "10"
  40.  
  41.   import-service:
  42.     container_name: coupon-processing-import-service
  43.     environment:
  44.       - CONSUL_HOST=${CONSUL_HOST}
  45.       - CONSUL_PORT=${CONSUL_PORT}
  46.       - database.host=${DB_HOST}
  47.       - database.username=${DB_USER}
  48.       - database.password=${DB_PASSWORD}
  49.       - database.name=${DB_NAME}
  50.     image: artifactory.setmachine.ru:5000/coupon-processing/import-service:${DOCKER_TAG}
  51.     command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/import-service.jar"]
  52.     ports:
  53.       - 8898:8080
  54.       - 8787:8787
  55.     depends_on:
  56.       - consul
  57.       - psql
  58.     logging:
  59.       options:
  60.         max-size: "10m"
  61.         max-file: "10"
  62.  
  63.   psql:
  64.     container_name: coupon-processing-psql
  65.     image: artifactory.setmachine.ru:5000/coupon-processing/psql:${DOCKER_TAG}
  66.     environment:
  67.       - POSTGRES_USER=${DB_USER}
  68.       - POSTGRES_PASSWORD=${DB_PASSWORD}
  69.     volumes:
  70.       - /media/me/myfiles/data/coupon-processing-psql/data:/var/lib/postgresql/data
  71.     ports:
  72.       - 5666:5432
  73.     logging:
  74.       options:
  75.         max-size: "10m"
  76.         max-file: "10"
  77.  
  78.   swagger:
  79.     container_name: coupon-processing-swagger-ui
  80.     image: artifactory.setmachine.ru:5000/coupon-processing/swagger-ui:${DOCKER_TAG}
  81.     ports:
  82.       - 4444:8080
  83.     logging:
  84.       options:
  85.         max-size: "10m"
  86.         max-file: "10"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement