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