无关风月
2025-04-03 b01f752252eaadd1fa31eda6a9ad43146660b721
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version : '3.8'
services:
  xinquan-nacos:
    container_name: xinquan-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:
      - xinquan-mysql
  xinquan-mysql:
    container_name: xinquan-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
  xinquan-redis:
    container_name: xinquan-redis
    image: redis
    build:
      context: ./redis
    ports:
      - "6379:6379"
    volumes:
      - ./redis/conf/redis.conf:/home/xinquan/redis/redis.conf
      - ./redis/data:/data
    command: redis-server /home/xinquan/redis/redis.conf
  xinquan-nginx:
    container_name: xinquan-nginx
    image: nginx
    build:
      context: ./nginx
    ports:
      - "80:80"
    volumes:
      - ./nginx/html/dist:/home/xinquan/projects/xinquan-ui
      - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
      - ./nginx/logs:/var/log/nginx
      - ./nginx/conf.d:/etc/nginx/conf.d
    depends_on:
      - xinquan-gateway
    links:
      - xinquan-gateway
  xinquan-gateway:
    container_name: xinquan-gateway
    build:
      context: ./xinquan/gateway
      dockerfile: dockerfile
    ports:
      - "8080:8080"
    depends_on:
      - xinquan-redis
    links:
      - xinquan-redis
  xinquan-auth:
    container_name: xinquan-auth
    build:
      context: ./xinquan/auth
      dockerfile: dockerfile
    ports:
      - "9200:9200"
    depends_on:
      - xinquan-redis
    links:
      - xinquan-redis
  xinquan-modules-system:
    container_name: xinquan-modules-system
    build:
      context: ./xinquan/modules/system
      dockerfile: dockerfile
    ports:
      - "9201:9201"
    depends_on:
      - xinquan-redis
      - xinquan-mysql
    links:
      - xinquan-redis
      - xinquan-mysql
  xinquan-modules-gen:
    container_name: xinquan-modules-gen
    build:
      context: ./xinquan/modules/gen
      dockerfile: dockerfile
    ports:
      - "9202:9202"
    depends_on:
      - xinquan-mysql
    links:
      - xinquan-mysql
  xinquan-modules-job:
    container_name: xinquan-modules-job
    build:
      context: ./xinquan/modules/job
      dockerfile: dockerfile
    ports:
      - "9203:9203"
    depends_on:
      - xinquan-mysql
    links:
      - xinquan-mysql
  xinquan-modules-file:
    container_name: xinquan-modules-file
    build:
      context: ./xinquan/modules/file
      dockerfile: dockerfile
    ports:
      - "9300:9300"
    volumes:
    - ./xinquan/uploadPath:/home/xinquan/uploadPath
  xinquan-visual-monitor:
    container_name: xinquan-visual-monitor
    build:
      context: ./xinquan/visual/monitor
      dockerfile: dockerfile
    ports:
      - "9100:9100"