version: '2'
services:
  pigx-zookeeper:
    image: zookeeper:3.4.13
    ports:
      - 2181:2181
    restart: always

  pigx-redis:
    image: redis:4.0.10
    ports:
      - 6379:6379
    restart: always

  pigx-eureka:
    build:
      context: ./
      dockerfile: ./pigx-eureka/Dockerfile
    restart: always
    ports:
      - 1025:1025

  pigx-config:
    build:
      context: ./
      dockerfile: ./pigx-config/Dockerfile
    restart: always

  pigx-gateway:
    build:
      context: ./
      dockerfile: ./pigx-gateway/Dockerfile
    restart: always
    ports:
      - 9999:9999

  pigx-auth:
    build:
      context: ./
      dockerfile: ./pigx-auth/Dockerfile
    restart: always

  pigx-upms:
    build:
      context: ./
      dockerfile: ./pigx-upms/pigx-upms-biz/Dockerfile
    restart: always

  pigx-monitor:
    build:
      context: ./
      dockerfile: ./pigx-visual/pigx-monitor/Dockerfile
    restart: always
    ports:
      - 5001:5001

  pigx-daemon:
    build:
      context: ./
      dockerfile: ./pigx-visual/pigx-daemon/Dockerfile
    restart: always
    ports:
      - 5002:5002

  pigx-codegen:
    build:
      context: ./
      dockerfile: ./pigx-visual/pigx-codegen/Dockerfile
    restart: always

  pigx-activiti:
    links:
      - pigx-eureka
      - pigx-redis
    build:
      context: ./
      dockerfile: ./pigx-visual/pigx-activiti/Dockerfile
    restart: always

  pigx-tx-manager:
    build:
      context: ./
      dockerfile: ./pigx-visual/pigx-tx-manager/Dockerfile
    restart: always
    ports:
      - 5004:5004
      - 9998:9998
