Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- consul:
- image: consul
- ports:
- - ${CONSUL_PORT}:${CONSUL_PORT}
- command: ["agent", "-dev", "-ui", "-http-port","${CONSUL_PORT}", "-client", "0.0.0.0"]
- gateway:
- image: artifactory.setmachine.ru:5000/gateway-lp
- environment:
- TZ: "Europe/Moscow"
- depends_on:
- - consul
- ports:
- - 8090:8090
- crud-service:
- container_name: coupon-processing-crud-service
- environment:
- - CONSUL_HOST=${CONSUL_HOST}
- - CONSUL_PORT=${CONSUL_PORT}
- - database.host=${DB_HOST}
- - database.username=${DB_USER}
- - database.password=${DB_PASSWORD}
- - database.name=${DB_NAME}
- image: artifactory.setmachine.ru:5000/coupon-processing/crud-service:${DOCKER_TAG}
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/crud-service.jar"]
- ports:
- - 8888:8080
- - 8788:8787
- depends_on:
- - consul
- - psql
- logging:
- options:
- max-size: "10m"
- max-file: "10"
- import-service:
- container_name: coupon-processing-import-service
- environment:
- - CONSUL_HOST=${CONSUL_HOST}
- - CONSUL_PORT=${CONSUL_PORT}
- - database.host=${DB_HOST}
- - database.username=${DB_USER}
- - database.password=${DB_PASSWORD}
- - database.name=${DB_NAME}
- image: artifactory.setmachine.ru:5000/coupon-processing/import-service:${DOCKER_TAG}
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/import-service.jar"]
- ports:
- - 8898:8080
- - 8787:8787
- depends_on:
- - consul
- - psql
- logging:
- options:
- max-size: "10m"
- max-file: "10"
- psql:
- container_name: coupon-processing-psql
- image: artifactory.setmachine.ru:5000/coupon-processing/psql:${DOCKER_TAG}
- environment:
- - POSTGRES_USER=${DB_USER}
- - POSTGRES_PASSWORD=${DB_PASSWORD}
- volumes:
- - /media/me/myfiles/data/coupon-processing-psql/data:/var/lib/postgresql/data
- ports:
- - 5666:5432
- logging:
- options:
- max-size: "10m"
- max-file: "10"
- swagger:
- container_name: coupon-processing-swagger-ui
- image: artifactory.setmachine.ru:5000/coupon-processing/swagger-ui:${DOCKER_TAG}
- ports:
- - 4444:8080
- logging:
- options:
- max-size: "10m"
- max-file: "10"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement