SHARE
TWEET

Untitled

fedorm Jun 27th, 2019 398 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2.  
  3. services:
  4.   consul:
  5.     image: consul
  6.     ports:
  7.       - ${CONSUL_PORT}
  8.     command: ["agent", "-dev", "-ui", "-http-port","${CONSUL_PORT}", "-client", "0.0.0.0"]
  9.  
  10.   coupon-service:
  11.     environment:
  12.       - CONSUL_HOST=${CONSUL_HOST}
  13.       - CONSUL_PORT=${CONSUL_PORT}
  14.       - database.host=${DB_HOST}
  15.       - database.port=${DB_PORT}
  16.       - database.username=${DB_USER}
  17.       - database.password=${DB_PASSWORD}
  18.       - database.name=${DB_NAME}
  19.       - KAFKA_HOST=127.0.0.1
  20.     build:
  21.       context:  ../../../../services/coupon/build/libs
  22.       dockerfile: ../../../../services/coupon
  23.     command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/coupon-service.jar"]
  24.     ports:
  25.       - 8080
  26.       - 8787
  27.     depends_on:
  28.       - consul
  29.       - psql-master
  30.  
  31.   category-service:
  32.     environment:
  33.       - CONSUL_HOST=${CONSUL_HOST}
  34.       - CONSUL_PORT=${CONSUL_PORT}
  35.       - database.host=${DB_HOST}
  36.       - database.port=${DB_PORT}
  37.       - database.username=${DB_USER}
  38.       - database.password=${DB_PASSWORD}
  39.       - database.name=${DB_NAME}
  40.       - app.files.dir=/data/storage
  41.       - FTP_HOST=ftp-server
  42.       - FTP_PORT=21
  43.       - KAFKA_HOST=127.0.0.1
  44.     build:
  45.       context:  ../../../../services/category/build/libs
  46.       dockerfile: ../../../../services/category
  47.     command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/category-service.jar"]
  48.     ports:
  49.       - 8080
  50.       - 8787
  51.     depends_on:
  52.       - consul
  53.       - psql-master
  54.     volumes:
  55.       - /data/storage:/data/storage
  56.  
  57.   consumer-service:
  58.     environment:
  59.       - CONSUL_HOST=${CONSUL_HOST}
  60.       - CONSUL_PORT=${CONSUL_PORT}
  61.       - database.host=${DB_HOST}
  62.       - database.port=${DB_PORT}
  63.       - database.username=${DB_USER}
  64.       - database.password=${DB_PASSWORD}
  65.       - database.name=${DB_NAME}
  66.       - app.tasks.series.database.scheduling.delay=1000
  67.       - app.tasks.imports.database.scheduling.delay=1000
  68.       - spring.datasource.hikari.maximum-pool-size=20
  69.       - app.files.dir=/data/storage
  70.       - FTP_HOST=ftp-server
  71.       - FTP_PORT=21
  72.       - KAFKA_HOST=127.0.0.1
  73.     build:
  74.       context:  ../../../../services/consumer/build/libs
  75.       dockerfile: ../../../../services/consumer
  76.     command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/consumer-service.jar"]
  77.     ports:
  78.       - 8080
  79.       - 8787
  80.     depends_on:
  81.       - consul
  82.       - psql-master
  83.     volumes:
  84.       - /data/storage:/data/storage
  85.  
  86.   psql-master:
  87.     image: postgres:11-alpine
  88.     command: '-c max_connections=500'
  89.     environment:
  90.       - POSTGRES_USER=${DB_USER}
  91.       - POSTGRES_PASSWORD=${DB_PASSWORD}
  92.       - POSTGRES_DB=${DB_NAME}
  93.     ports:
  94.       - 5432
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top