| | |
| | | --explicit_defaults_for_timestamp=true |
| | | --lower_case_table_names=1 |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.36 |
| | | network_mode: "host" |
| | | |
| | | nginx-web: |
| | | image: nginx:1.21.6 |
| | |
| | | # 日志目录 |
| | | - /docker/nginx/log:/var/log/nginx |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | - ruoyi_net |
| | | network_mode: "host" |
| | | |
| | | redis: |
| | | image: redis:6.2.7 |
| | |
| | | - /docker/redis/data/:/redis/data/:rw |
| | | command: "redis-server /redis/config/redis.conf" |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.48 |
| | | network_mode: "host" |
| | | |
| | | minio: |
| | | image: minio/minio:RELEASE.2022-05-26T05-48-41Z |
| | |
| | | - /docker/minio/config:/root/.minio/ |
| | | command: server --address ':9000' --console-address ':9001' /data # 指定容器中的目录 /data |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.54 |
| | | network_mode: "host" |
| | | |
| | | ruoyi-server1: |
| | | image: ruoyi/ruoyi-server:4.2.0 |
| | |
| | | environment: |
| | | # 时区上海 |
| | | TZ: Asia/Shanghai |
| | | SERVER_PORT: 8080 |
| | | volumes: |
| | | # 配置文件 |
| | | - /docker/server1/logs/:/ruoyi/server/logs/ |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.60 |
| | | network_mode: "host" |
| | | |
| | | ruoyi-server2: |
| | | image: "ruoyi/ruoyi-server:4.2.0" |
| | |
| | | environment: |
| | | # 时区上海 |
| | | TZ: Asia/Shanghai |
| | | SERVER_PORT: 8081 |
| | | volumes: |
| | | # 配置文件 |
| | | - /docker/server2/logs/:/ruoyi/server/logs/ |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.61 |
| | | network_mode: "host" |
| | | |
| | | ruoyi-monitor-admin: |
| | | image: ruoyi/ruoyi-monitor-admin:4.2.0 |
| | |
| | | # 配置文件 |
| | | - /docker/monitor/logs/:/ruoyi/monitor/logs |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.90 |
| | | network_mode: "host" |
| | | |
| | | ruoyi-xxl-job-admin: |
| | | image: ruoyi/ruoyi-xxl-job-admin:4.2.0 |
| | |
| | | # 配置文件 |
| | | - /docker/xxljob/logs/:/ruoyi/xxljob/logs |
| | | privileged: true |
| | | restart: always |
| | | networks: |
| | | ruoyi_net: |
| | | ipv4_address: 172.30.0.92 |
| | | |
| | | networks: |
| | | ruoyi_net: |
| | | driver: bridge |
| | | ipam: |
| | | config: |
| | | - subnet: 172.30.0.0/16 |
| | | network_mode: "host" |