|
|
@ -1,12 +1,20 @@
|
|
|
|
version : '3.8'
|
|
|
|
version : '3.8'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
|
|
ruoyi-net:
|
|
|
|
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
ruoyi-nacos:
|
|
|
|
ruoyi-nacos:
|
|
|
|
container_name: ruoyi-nacos
|
|
|
|
container_name: ruoyi-nacos
|
|
|
|
image: nacos/nacos-server
|
|
|
|
image: nacos/nacos-server:3.0.2
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
context: ./nacos
|
|
|
|
context: ./nacos
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- MODE=standalone
|
|
|
|
- MODE=standalone
|
|
|
|
|
|
|
|
- NACOS_AUTH_TOKEN=rO0ABXNyABNqYXZhLnV0aWwuQmFzZTY0dPTZ3QE+Kk1T6mN8X0YpV3kQ7ZbJ5A==
|
|
|
|
|
|
|
|
- NACOS_AUTH_IDENTITY_KEY=serverIdentity
|
|
|
|
|
|
|
|
- NACOS_AUTH_IDENTITY_VALUE=security
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./nacos/logs/:/home/nacos/logs
|
|
|
|
- ./nacos/logs/:/home/nacos/logs
|
|
|
|
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
|
|
|
|
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
|
|
|
@ -14,8 +22,11 @@ services:
|
|
|
|
- "8848:8848"
|
|
|
|
- "8848:8848"
|
|
|
|
- "9848:9848"
|
|
|
|
- "9848:9848"
|
|
|
|
- "9849:9849"
|
|
|
|
- "9849:9849"
|
|
|
|
|
|
|
|
- "8888:8080"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-mysql
|
|
|
|
- ruoyi-mysql
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-mysql:
|
|
|
|
ruoyi-mysql:
|
|
|
|
container_name: ruoyi-mysql
|
|
|
|
container_name: ruoyi-mysql
|
|
|
|
image: mysql:5.7
|
|
|
|
image: mysql:5.7
|
|
|
@ -38,6 +49,8 @@ services:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: 'ry-cloud'
|
|
|
|
MYSQL_DATABASE: 'ry-cloud'
|
|
|
|
MYSQL_ROOT_PASSWORD: password
|
|
|
|
MYSQL_ROOT_PASSWORD: password
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-redis:
|
|
|
|
ruoyi-redis:
|
|
|
|
container_name: ruoyi-redis
|
|
|
|
container_name: ruoyi-redis
|
|
|
|
image: redis
|
|
|
|
image: redis
|
|
|
@ -49,6 +62,8 @@ services:
|
|
|
|
- ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
|
|
|
|
- ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
|
|
|
|
- ./redis/data:/data
|
|
|
|
- ./redis/data:/data
|
|
|
|
command: redis-server /home/ruoyi/redis/redis.conf
|
|
|
|
command: redis-server /home/ruoyi/redis/redis.conf
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-nginx:
|
|
|
|
ruoyi-nginx:
|
|
|
|
container_name: ruoyi-nginx
|
|
|
|
container_name: ruoyi-nginx
|
|
|
|
image: nginx
|
|
|
|
image: nginx
|
|
|
@ -63,8 +78,8 @@ services:
|
|
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-gateway
|
|
|
|
- ruoyi-gateway
|
|
|
|
links:
|
|
|
|
networks:
|
|
|
|
- ruoyi-gateway
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-gateway:
|
|
|
|
ruoyi-gateway:
|
|
|
|
container_name: ruoyi-gateway
|
|
|
|
container_name: ruoyi-gateway
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -74,8 +89,9 @@ services:
|
|
|
|
- "8080:8080"
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-redis
|
|
|
|
- ruoyi-redis
|
|
|
|
links:
|
|
|
|
- ruoyi-nacos
|
|
|
|
- ruoyi-redis
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-auth:
|
|
|
|
ruoyi-auth:
|
|
|
|
container_name: ruoyi-auth
|
|
|
|
container_name: ruoyi-auth
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -85,8 +101,9 @@ services:
|
|
|
|
- "9200:9200"
|
|
|
|
- "9200:9200"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-redis
|
|
|
|
- ruoyi-redis
|
|
|
|
links:
|
|
|
|
- ruoyi-nacos
|
|
|
|
- ruoyi-redis
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-modules-system:
|
|
|
|
ruoyi-modules-system:
|
|
|
|
container_name: ruoyi-modules-system
|
|
|
|
container_name: ruoyi-modules-system
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -96,10 +113,10 @@ services:
|
|
|
|
- "9201:9201"
|
|
|
|
- "9201:9201"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-redis
|
|
|
|
- ruoyi-redis
|
|
|
|
|
|
|
|
- ruoyi-nacos
|
|
|
|
- ruoyi-mysql
|
|
|
|
- ruoyi-mysql
|
|
|
|
links:
|
|
|
|
networks:
|
|
|
|
- ruoyi-redis
|
|
|
|
- ruoyi-net
|
|
|
|
- ruoyi-mysql
|
|
|
|
|
|
|
|
ruoyi-modules-gen:
|
|
|
|
ruoyi-modules-gen:
|
|
|
|
container_name: ruoyi-modules-gen
|
|
|
|
container_name: ruoyi-modules-gen
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -109,8 +126,8 @@ services:
|
|
|
|
- "9202:9202"
|
|
|
|
- "9202:9202"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-mysql
|
|
|
|
- ruoyi-mysql
|
|
|
|
links:
|
|
|
|
networks:
|
|
|
|
- ruoyi-mysql
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-modules-job:
|
|
|
|
ruoyi-modules-job:
|
|
|
|
container_name: ruoyi-modules-job
|
|
|
|
container_name: ruoyi-modules-job
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -120,8 +137,8 @@ services:
|
|
|
|
- "9203:9203"
|
|
|
|
- "9203:9203"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- ruoyi-mysql
|
|
|
|
- ruoyi-mysql
|
|
|
|
links:
|
|
|
|
networks:
|
|
|
|
- ruoyi-mysql
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-modules-file:
|
|
|
|
ruoyi-modules-file:
|
|
|
|
container_name: ruoyi-modules-file
|
|
|
|
container_name: ruoyi-modules-file
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -131,6 +148,8 @@ services:
|
|
|
|
- "9300:9300"
|
|
|
|
- "9300:9300"
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./ruoyi/uploadPath:/home/ruoyi/uploadPath
|
|
|
|
- ./ruoyi/uploadPath:/home/ruoyi/uploadPath
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|
ruoyi-visual-monitor:
|
|
|
|
ruoyi-visual-monitor:
|
|
|
|
container_name: ruoyi-visual-monitor
|
|
|
|
container_name: ruoyi-visual-monitor
|
|
|
|
build:
|
|
|
|
build:
|
|
|
@ -138,3 +157,5 @@ services:
|
|
|
|
dockerfile: dockerfile
|
|
|
|
dockerfile: dockerfile
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "9100:9100"
|
|
|
|
- "9100:9100"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
|
|
- ruoyi-net
|
|
|
|