version: '3.1' services: rabbit: hostname: rabbitmq restart: always container_name: rabbitmq image: rabbitmq:3-management ports: - '5672:5672' - '15672:15672' expose: - 5672 - 15672 privileged: true volumes: - ./data/rabbitmq:/var/lib/rabbitmq command: - /bin/bash - -c - | (sleep 10;\ rabbitmqctl add_vhost "/ibps";\ rabbitmqctl add_user "ibps" "ibps@123";\ rabbitmqctl set_user_tags "ibps" "administrator";\ rabbitmqctl set_permissions -p "/ibps" "ibps" ".*" ".*" ".*";\ rabbitmqctl add_vhost "/lc";\ rabbitmqctl add_user "lcdatasoft" "lc@123";\ rabbitmqctl set_user_tags "lcdatasoft" "administrator";\ rabbitmqctl set_permissions -p "/lc" "lcdatasoft" ".*" ".*" ".*")& rabbitmq-server redis: hostname: redis restart: always container_name: redis image: redis:4 ports: - '6379:6379' expose: - 6379 privileged: true volumes: - ./conf/redis.conf:/usr/local/etc/redis/redis.conf - ./data/redis:/data/redis command: ["redis-server", "/usr/local/etc/redis/redis.conf"] mysql: hostname: mysql restart: always container_name: mysql image: mysql:5.7 environment: - MYSQL_ROOT_PASSWORD=root ports: - '3306:3306' expose: - 3306 privileged: true volumes: - ./conf/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf - ./data/mysql:/var/lib/mysql - ./init/mysql:/docker-entrypoint-initdb.d fastdfs: hostname: fastdfs restart: always container_name: fastdfs image: tools.bpmhome.cn:18082/fastdfs environment: # 需要替换为实际IP - IP=192.168.3.230 ports: - '22122:22122' - '6666:6666' - '23000:23000' - '8888:8888' expose: - 22122 - 6666 - 23000 - 8888 privileged: true volumes: - ./data/fastdfs:/var/local/fdfs consul: hostname: consul restart: always container_name: consul image: consul:1.5 privileged: true ports: - 8500:8500 entrypoint: ["docker-entrypoint.sh"] command: ["agent", "-dev", "-ui", "-client", "0.0.0.0"] # eureka: # hostname: eureka # restart: always # container_name: eureka # image: tools.bpmhome.cn:18082/eureka:latest # env_file: # - ./env/eureka.docker.env # ports: # - 5000:5000 zuul: hostname: zuul restart: always container_name: zuul image: tools.bpmhome.cn:18082/zuul:latest env_file: - ./env/zuul.docker.env - ./env/provider.docker.env ports: - 5100:5100 depends_on: - "consul" oauth2server: hostname: oauth2server restart: always container_name: oauth2server image: tools.bpmhome.cn:18082/oauth2server:latest env_file: - ./env/oauth.docker.env - ./env/provider.docker.env ports: - 5200:5200 depends_on: - "consul" volumes: - ./datasource/datasource-platform.xml:/opt/lc/ibps/v3/oauth2server/conf/dataSource-prod.xml - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/oauth2server/conf/ibpsVfy.lic - ./license/ibpsPublic.store:/opt/lc/ibps/v3/oauth2server/conf/ibpsPublic.store - ./license/license.passwd:/opt/lc/ibps/v3/oauth2server/conf/license.passwd platform: hostname: platform restart: always container_name: platform image: tools.bpmhome.cn:18082/platform:latest env_file: - ./env/platform.docker.env - ./env/provider.docker.env ports: - 5300:5300 depends_on: - "consul" volumes: - ./datasource/datasource-platform.xml:/opt/lc/ibps/v3/platform/conf/dataSource-prod.xml - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/platform/conf/ibpsVfy.lic - ./license/ibpsPublic.store:/opt/lc/ibps/v3/platform/conf/ibpsPublic.store - ./license/license.passwd:/opt/lc/ibps/v3/platform/conf/license.passwd business: hostname: business restart: always container_name: business image: tools.bpmhome.cn:18082/business:latest env_file: - ./env/business.docker.env - ./env/provider.docker.env ports: - 5305:5305 depends_on: - "consul" volumes: - ./datasource/datasource-business.xml:/opt/lc/ibps/v3/business/conf/dataSource-prod.xml - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/business/conf/ibpsVfy.lic - ./license/ibpsPublic.store:/opt/lc/ibps/v3/business/conf/ibpsPublic.store - ./license/license.passwd:/opt/lc/ibps/v3/business/conf/license.passwd # from: # hostname: form # restart: always # container_name: from # image: tools.bpmhome.cn:18082/from:latest # env_file: # - ./env/from.docker.env # - ./env/provider.docker.env # ports: # - 5303:5303 # depends_on: # - "consul" # volumes: # - ./datasource/datasource-form.xml:/opt/lc/ibps/v3/form/conf/dataSource-prod.xml # - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/form/conf/ibpsVfy.lic # - ./license/ibpsPublic.store:/opt/lc/ibps/v3/form/conf/ibpsPublic.store # bpmn: # hostname: bpmn # restart: always # container_name: bpmn # image: tools.bpmhome.cn:18082/bpmn:latest # env_file: # - ./env/bpmn.docker.env # - ./env/provider.docker.env # ports: # - 5304:5304 # depends_on: # - "consul" # volumes: # - ./datasource/datasource-bpmn.xml:/opt/lc/ibps/v3/bpmn/conf/dataSource-prod.xml # - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/bpmn/conf/ibpsVfy.lic # - ./license/ibpsPublic.store:/opt/lc/ibps/v3/bpmn/conf/ibpsPublic.store nginx: hostname: nginx restart: always container_name: nginx image: nginx:1.16-alpine ports: - 80:80 depends_on: - "zuul" volumes: - ./conf/nginx.conf:/etc/nginx/nginx.conf - ./ui:/etc/nginx/html