Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- consul:
- image: consul
- ports:
- - ${CONSUL_PORT}
- command: ["agent", "-dev", "-ui", "-http-port","${CONSUL_PORT}", "-client", "0.0.0.0"]
- coupon-service:
- environment:
- - CONSUL_HOST=${CONSUL_HOST}
- - CONSUL_PORT=${CONSUL_PORT}
- - database.host=${DB_HOST}
- - database.port=${DB_PORT}
- - database.username=${DB_USER}
- - database.password=${DB_PASSWORD}
- - database.name=${DB_NAME}
- - KAFKA_HOST=127.0.0.1
- build:
- context: ../../../../services/coupon/build/libs
- dockerfile: ../../../../services/coupon
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/coupon-service.jar"]
- ports:
- - 8080
- - 8787
- depends_on:
- - consul
- - psql-master
- category-service:
- environment:
- - CONSUL_HOST=${CONSUL_HOST}
- - CONSUL_PORT=${CONSUL_PORT}
- - database.host=${DB_HOST}
- - database.port=${DB_PORT}
- - database.username=${DB_USER}
- - database.password=${DB_PASSWORD}
- - database.name=${DB_NAME}
- - app.files.dir=/data/storage
- - FTP_HOST=ftp-server
- - FTP_PORT=21
- - KAFKA_HOST=127.0.0.1
- build:
- context: ../../../../services/category/build/libs
- dockerfile: ../../../../services/category
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/category-service.jar"]
- ports:
- - 8080
- - 8787
- depends_on:
- - consul
- - psql-master
- volumes:
- - /data/storage:/data/storage
- consumer-service:
- environment:
- - CONSUL_HOST=${CONSUL_HOST}
- - CONSUL_PORT=${CONSUL_PORT}
- - database.host=${DB_HOST}
- - database.port=${DB_PORT}
- - database.username=${DB_USER}
- - database.password=${DB_PASSWORD}
- - database.name=${DB_NAME}
- - app.tasks.series.database.scheduling.delay=1000
- - app.tasks.imports.database.scheduling.delay=1000
- - spring.datasource.hikari.maximum-pool-size=20
- - app.files.dir=/data/storage
- - FTP_HOST=ftp-server
- - FTP_PORT=21
- - KAFKA_HOST=127.0.0.1
- build:
- context: ../../../../services/consumer/build/libs
- dockerfile: ../../../../services/consumer
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/consumer-service.jar"]
- ports:
- - 8080
- - 8787
- depends_on:
- - consul
- - psql-master
- volumes:
- - /data/storage:/data/storage
- psql-master:
- image: postgres:11-alpine
- command: '-c max_connections=500'
- environment:
- - POSTGRES_USER=${DB_USER}
- - POSTGRES_PASSWORD=${DB_PASSWORD}
- - POSTGRES_DB=${DB_NAME}
- ports:
- - 5432
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement