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: haproxy:1.9.4
- volumes:
- - ./haproxy:/haproxy-override
- - ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
- ports:
- - 8090:8090
- - 3333:3333
- depends_on:
- - coupon-service
- - category-service
- 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}
- - LOGSTASH_HOST=logstash
- - LOGSTASH_PORT=5000
- image: artifactory.setmachine.ru:5000/coupon-processing/coupon-service:${COUPON_TAG}
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/coupon-service.jar"]
- ports:
- - 8888:8080
- - 8788:8787
- depends_on:
- - consul
- - psql-master
- logging:
- options:
- max-size: "10m"
- max-file: "10"
- 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
- - LOGSTASH_HOST=logstash
- - LOGSTASH_PORT=5000
- image: artifactory.setmachine.ru:5000/coupon-processing/category-service:${CATEGORY_TAG}
- command: ["java", "-Dspring.profiles.active=${SPRING_PROFILES}", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787", "-jar", "/app/category-service.jar"]
- ports:
- - 8898:8080
- - 8798: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}
- - PGDATA=/var/lib/postgresql/data
- ports:
- - 5532:5432
- logging:
- options:
- max-size: "10m"
- max-file: "10"
- volumes:
- - /media/me/myfiles/data/coupon-processing-psql-master/data1:/var/lib/postgresql/data
- ftp-server:
- environment:
- - USERS=$FTP_USERS
- - ADDRESS=ftp-server
- image: delfer/alpine-ftp-server
- ports:
- - "10021:21"
- - "21000-21010:21000-21010"
- volumes:
- - /media/me/myfiles/data/ftp:/ftp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement