[Octopus] modify project to SpringBoot version ok

This commit is contained in:
zeaslity
2023-06-14 11:41:01 +08:00
parent 282e70d942
commit e6c71612aa
4 changed files with 27 additions and 10 deletions

View File

@@ -6,10 +6,10 @@ spring:
allow-circular-references: true allow-circular-references: true
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
rabbitmq: rabbitmq:
host: 150.230.198.103 host: 42.192.52.227
port: 20672 port: 20672
username: boge username: boge
password: boge14@Level5 password: boge8tingH
virtual-host: / virtual-host: /
listener: listener:
simple: simple:
@@ -21,10 +21,10 @@ spring:
max-interval: 65000 max-interval: 65000
initial-interval: 65000 initial-interval: 65000
redis: redis:
host: 146.56.147.12 host: 42.192.52.227
port: 21370 port: 21370
database: 0 database: 0
password: boge14@Level5 password: boge8tingH
# cluster: # cluster:
# nodes: # nodes:
# - 43.154.83.213:21370 # - 43.154.83.213:21370
@@ -34,7 +34,7 @@ spring:
# - 43.154.83.213:21374 # - 43.154.83.213:21374
# - 43.154.83.213:21375 # - 43.154.83.213:21375
# # 获取失败 最大重定向次数 # # 获取失败 最大重定向次数
# max-redirects: 3 # max-redirects: 3
# timeout: 50000 # timeout: 50000
#如果用以前的jedis可以把下面的lettuce换成jedis即可 #如果用以前的jedis可以把下面的lettuce换成jedis即可
lettuce: lettuce:
@@ -50,9 +50,9 @@ spring:
time-between-eviction-runs: 50000 time-between-eviction-runs: 50000
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://140.238.63.37:21306/wdd_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8 url: jdbc:mysql://42.192.52.227:21306/octopus_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
username: root username: boge
password: boge14@Level5 password: boge8tingH
type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
hikari: hikari:
minimum-idle: 3 minimum-idle: 3

View File

@@ -24,13 +24,13 @@ services:
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 6 retries: 6
redis-master: redis:
# https://hub.docker.com/r/bitnami/redis # https://hub.docker.com/r/bitnami/redis
image: bitnami/redis:6.2.11-debian-11-r1 image: bitnami/redis:6.2.11-debian-11-r1
networks: networks:
- app-tier - app-tier
environment: environment:
- REDIS_PASSWORD=Superwmm.23 - REDIS_PASSWORD=boge8tingH
# Redis 6.0 features a new multi-threading model # Redis 6.0 features a new multi-threading model
- REDIS_IO_THREADS=4 - REDIS_IO_THREADS=4
- REDIS_IO_THREADS_DO_READS=yes - REDIS_IO_THREADS_DO_READS=yes

View File

@@ -46,6 +46,23 @@ services:
- RABBITMQ_MANAGEMENT_PORT_NUMBER=15672 - RABBITMQ_MANAGEMENT_PORT_NUMBER=15672
volumes: volumes:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia' - 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
redis:
# https://hub.docker.com/r/bitnami/redis
image: bitnami/redis:6.2.11-debian-11-r1
networks:
- app-tier
environment:
- REDIS_PASSWORD=boge8tingH
# Redis 6.0 features a new multi-threading model
- REDIS_IO_THREADS=4
- REDIS_IO_THREADS_DO_READS=yes
- REDIS_PORT_NUMBER=6379
- REDIS_REPLICATION_MODE=master
#- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- '21370:6379'
volumes:
- 'redis_data:/bitnami/redis/data'
volumes: volumes:
mysql_data: mysql_data: