version : '3.8' services: jing-nacos: container_name: jing-nacos image: nacos/nacos-server build: context: ./nacos environment: - MODE=standalone volumes: - ./nacos/logs/:/home/nacos/logs - ./nacos/conf/application.properties:/home/nacos/conf/application.properties ports: - "8848:8848" - "9848:9848" - "9849:9849" depends_on: - jing-mysql jing-mysql: container_name: jing-mysql image: mysql:5.7 build: context: ./mysql ports: - "3306:3306" volumes: - ./mysql/conf:/etc/mysql/conf.d - ./mysql/logs:/logs - ./mysql/data:/var/lib/mysql command: [ 'mysqld', '--innodb-buffer-pool-size=80M', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-time-zone=+8:00', '--lower-case-table-names=1' ] environment: MYSQL_DATABASE: 'ry-cloud' MYSQL_ROOT_PASSWORD: password jing-redis: container_name: jing-redis image: redis build: context: ./redis ports: - "6379:6379" volumes: - ./redis/conf/redis.conf:/home/jing/redis/redis.conf - ./redis/data:/data command: redis-server /home/jing/redis/redis.conf jing-nginx: container_name: jing-nginx image: nginx build: context: ./nginx ports: - "80:80" volumes: - ./nginx/html/dist:/home/jing/projects/jing-ui - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf - ./nginx/logs:/var/log/nginx - ./nginx/conf.d:/etc/nginx/conf.d depends_on: - jing-gateway links: - jing-gateway jing-gateway: container_name: jing-gateway build: context: ./jing/gateway dockerfile: dockerfile ports: - "8080:8080" depends_on: - jing-redis links: - jing-redis jing-auth: container_name: jing-auth build: context: ./jing/auth dockerfile: dockerfile ports: - "9200:9200" depends_on: - jing-redis links: - jing-redis jing-modules-system: container_name: jing-modules-system build: context: ./jing/modules/system dockerfile: dockerfile ports: - "9201:9201" depends_on: - jing-redis - jing-mysql links: - jing-redis - jing-mysql jing-modules-gen: container_name: jing-modules-gen build: context: ./jing/modules/gen dockerfile: dockerfile ports: - "9202:9202" depends_on: - jing-mysql links: - jing-mysql jing-modules-job: container_name: jing-modules-job build: context: ./jing/modules/job dockerfile: dockerfile ports: - "9203:9203" depends_on: - jing-mysql links: - jing-mysql jing-modules-file: container_name: jing-modules-file build: context: ./jing/modules/file dockerfile: dockerfile ports: - "9300:9300" volumes: - ./jing/uploadPath:/home/jing/uploadPath jing-visual-monitor: container_name: jing-visual-monitor build: context: ./jing/visual/monitor dockerfile: dockerfile ports: - "9100:9100"