1
13693261870
2024-08-24 86b49be0b5855cbd42e2f8ded7f4b6abe0e0e8f3
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
version : '3.8'
services:
  # mysql
  se-mysql:
    image: mysql:5.7
    ports:
      - 3307:3306
    volumes:
      - ./mysql/logs:/logs
      - ./mysql/data:/var/lib/mysql
      - ./mysql/conf:/etc/mysql/conf.d
      - ./mysql/initdb:/docker-entrypoint-initdb.d
    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:
      TZ: Asia/Shanghai
      MYSQL_DATABASE: 'se-cloud'
      MYSQL_ROOT_PASSWORD: My_Sql_s!E_v5.7
    networks:
      - network-se
    restart: always
  # nacos
  se-nacos:
    image: nacos/nacos-server:v2.4.1
    environment:
      MODE: standalone
      TZ: Asia/Shanghai
    volumes:
      - ./nacos/logs/:/home/nacos/logs
      - ./nacos/conf/application.properties:/home/nacos/conf/application.properties
    ports:
      - 8848:8848
      - 9848:9848
      - 9849:9849
    depends_on:
      - se-mysql
    networks:
      - network-se
    restart: always
  # redis,Redis_s!E_6.2.6
  se-redis:
    image: redis:latest
    ports:
      - 6379:6379
    volumes:
      - ./redis/data/redis.conf:/data/redis.conf
      - ./redis/data:/data
    command: redis-server /data/redis.conf
    networks:
      - network-se
    restart: always
  # gateway
  se-gateway:
    image: openjdk:8-jre
    ports:
      - 9204:8080
    volumes:
      - ./gateway:/data
    environment:
      TZ: Asia/Shanghai
    entrypoint: java -jar /data/se-gateway.jar --spring.config.location=file:/data/
    depends_on:
      - se-redis
      - se-nacos
    links:
      - se-redis
      - se-nacos
    networks:
      - network-se
    restart: always
  # auth
  se-auth:
    image: openjdk:8-jre
    ports:
      - 9200:9200
    volumes:
      - ./auth:/data
    environment:
      TZ: Asia/Shanghai
    entrypoint: java -jar /data/se-auth.jar --spring.config.location=file:/data/
    depends_on:
      - se-redis
      - se-nacos
    networks:
      - network-se
    restart: always
  # system
  se-system:
    image: openjdk:8-jre
    ports:
      - 9201:9201
    volumes:
      - ./system:/data
    environment:
      TZ: Asia/Shanghai
    entrypoint: java -jar /data/se-modules-system.jar --spring.config.location=file:/data/
    depends_on:
      - se-redis
      - se-nacos
      - se-mysql
    networks:
      - network-se
    restart: always
  # nginx
  se-nginx:
    image: nginx:latest
    ports:
      - 8090:80
    environment:
      TZ: Asia/Shanghai
    volumes:
      - ./nginx/logs:/var/log/nginx
      - ./nginx/conf.d:/etc/nginx/conf.d
      - ./nginx/html:/usr/share/nginx/html
      - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
    depends_on:
      - se-gateway
    networks:
      - network-se
    restart: always
# networks
networks:
  network-se:
    driver: bridge