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