first commit
This commit is contained in:
@@ -0,0 +1,202 @@
|
||||
version : '3.8'
|
||||
services:
|
||||
nacos:
|
||||
container_name: ruoyi-nacos
|
||||
image: nacos/nacos-server:v2.0.4
|
||||
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"
|
||||
redis:
|
||||
container_name: ruoyi-redis
|
||||
image: redis
|
||||
build:
|
||||
context: ./redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
|
||||
- ./redis/data:/data
|
||||
command: redis-server /home/ruoyi/redis/redis.conf
|
||||
nginx:
|
||||
container_name: ruoyi-nginx
|
||||
image: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/html/dist:/home/ruoyi/projects/ruoyi-ui
|
||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
depends_on:
|
||||
- ruoyi-gateway
|
||||
links:
|
||||
- ruoyi-gateway
|
||||
gateway:
|
||||
container_name: ruoyi-gateway
|
||||
build:
|
||||
context: ./ruoyi/gateway
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
auth:
|
||||
container_name: ruoyi-auth
|
||||
build:
|
||||
context: ./ruoyi/auth
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9200:9200"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-system:
|
||||
container_name: ruoyi-modules-system
|
||||
build:
|
||||
context: ./ruoyi/modules/system
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9201:9201"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
# - ruoyi-mysql
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-activity:
|
||||
container_name: ruoyi-modules-activity
|
||||
build:
|
||||
context: ./ruoyi/modules/activity
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9401:9401"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-additional:
|
||||
container_name: ruoyi-modules-additional
|
||||
build:
|
||||
context: ./ruoyi/modules/additional
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9406:9406"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-jdh:
|
||||
container_name: ruoyi-modules-jdh
|
||||
build:
|
||||
context: ./ruoyi/modules/jdh
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9400:9400"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-member:
|
||||
container_name: ruoyi-modules-member
|
||||
build:
|
||||
context: ./ruoyi/modules/member
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9210:9210"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-proposal:
|
||||
container_name: ruoyi-modules-proposal
|
||||
build:
|
||||
context: ./ruoyi/modules/proposal
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9211:9211"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-staffService:
|
||||
container_name: ruoyi-modules-staffService
|
||||
build:
|
||||
context: ./ruoyi/modules/staffService
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9212:9212"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-threeEduccation:
|
||||
container_name: ruoyi-modules-threeEduccation
|
||||
build:
|
||||
context: ./ruoyi/modules/threeEduccation
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9213:9213"
|
||||
depends_on:
|
||||
- ruoyi-redis
|
||||
links:
|
||||
- ruoyi-redis
|
||||
modules-job:
|
||||
container_name: ruoyi-modules-job
|
||||
build:
|
||||
context: ./ruoyi/modules/job
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9203:9203"
|
||||
modules-file:
|
||||
container_name: ruoyi-modules-file
|
||||
build:
|
||||
context: ./ruoyi/modules/file
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9300:9300"
|
||||
volumes:
|
||||
# - ./ruoyi/uploadPath:/home/ruoyi/uploadPath
|
||||
- /opt/openoffice4:/opt/openoffice4
|
||||
visual-monitor:
|
||||
container_name: ruoyi-visual-monitor
|
||||
build:
|
||||
context: ./ruoyi/visual/monitor
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9100:9100"
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
# image: minio/minio:RELEASE.2023-03-13T19-46-17Z
|
||||
container_name: minio
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- /var/minio/data:/data
|
||||
- /var/minio/config:/root/.minio
|
||||
environment:
|
||||
MINIO_ROOT_USER: "minioadmin"
|
||||
MINIO_ROOT_PASSWORD: "dd3s@#2016"
|
||||
command: server /data --console-address ":9001" -address ":9000"
|
||||
restart: always
|
||||
openoffice:
|
||||
image: akiraheid/openoffice:4.1.14
|
||||
container_name: openoffice
|
||||
volumes:
|
||||
- /opt/openoffice4:/opt/openoffice4
|
||||
ports:
|
||||
- "8100:8100"
|
||||
restart: always
|
||||
Reference in New Issue
Block a user