version : '3.8' services: lzga-nacos: container_name: lzga-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: - lzga-mysql lzga-mysql: container_name: lzga-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 lzga-redis: container_name: lzga-redis image: redis build: context: ./redis ports: - "6379:6379" volumes: - ./redis/conf/redis.conf:/home/lzga/redis/redis.conf - ./redis/data:/data command: redis-server /home/lzga/redis/redis.conf lzga-nginx: container_name: lzga-nginx image: nginx build: context: ./nginx ports: - "80:80" volumes: - ./nginx/html/dist:/home/lzga/projects/lzga-ui - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf - ./nginx/logs:/var/log/nginx - ./nginx/conf.d:/etc/nginx/conf.d depends_on: - lzga-gateway links: - lzga-gateway lzga-gateway: container_name: lzga-gateway build: context: ./lzga/gateway dockerfile: dockerfile ports: - "8080:8080" depends_on: - lzga-redis links: - lzga-redis lzga-auth: container_name: lzga-auth build: context: ./lzga/auth dockerfile: dockerfile ports: - "9200:9200" depends_on: - lzga-redis links: - lzga-redis lzga-modules-system: container_name: lzga-modules-system build: context: ./lzga/modules/system dockerfile: dockerfile ports: - "9201:9201" depends_on: - lzga-redis - lzga-mysql links: - lzga-redis - lzga-mysql lzga-modules-gen: container_name: lzga-modules-gen build: context: ./lzga/modules/gen dockerfile: dockerfile ports: - "9202:9202" depends_on: - lzga-mysql links: - lzga-mysql lzga-modules-job: container_name: lzga-modules-job build: context: ./lzga/modules/job dockerfile: dockerfile ports: - "9203:9203" depends_on: - lzga-mysql links: - lzga-mysql lzga-modules-file: container_name: lzga-modules-file build: context: ./lzga/modules/file dockerfile: dockerfile ports: - "9300:9300" volumes: - ./lzga/uploadPath:/home/lzga/uploadPath lzga-visual-monitor: container_name: lzga-visual-monitor build: context: ./lzga/visual/monitor dockerfile: dockerfile ports: - "9100:9100"