内网开发
This commit is contained in:
@@ -20,14 +20,16 @@ services:
|
||||
LANG: en_US.UTF-8
|
||||
LC_ALL: en_US.UTF-8
|
||||
TZ: Asia/Shanghai
|
||||
IM_HOST: 172.16.3.19
|
||||
container_name: im-tcp
|
||||
volumes:
|
||||
- ./:/hd-znzq/config
|
||||
- ./:/hd-znzq/system
|
||||
ports:
|
||||
- 29001:29001
|
||||
- 29000:29000
|
||||
command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-service-1.0.0-SNAPSHOT.jar /hd-znzq/config/hd_1.yml
|
||||
network_mode: host
|
||||
# ports:
|
||||
# - 29001:29001
|
||||
# - 29000:29000
|
||||
command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-tcp-1.0.0-SNAPSHOT.jar /hd-znzq/config/hd_1.yml
|
||||
im-message-store:
|
||||
image: 172.16.2.1:8083/java:8_server-jre_unlimited
|
||||
restart: always
|
||||
@@ -39,8 +41,9 @@ services:
|
||||
container_name: im-message-store
|
||||
volumes:
|
||||
- ./:/hd-znzq/system
|
||||
ports:
|
||||
- 8990:8990
|
||||
# ports:
|
||||
# - 8990:8990
|
||||
network_mode: host
|
||||
command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-message-store-1.0.0-SNAPSHOT.jar
|
||||
im-service:
|
||||
image: 172.16.2.1:8083/java:8_server-jre_unlimited
|
||||
@@ -50,11 +53,13 @@ services:
|
||||
LANG: en_US.UTF-8
|
||||
LC_ALL: en_US.UTF-8
|
||||
TZ: Asia/Shanghai
|
||||
SRS_HOST: 172.16.3.19
|
||||
container_name: im-service
|
||||
volumes:
|
||||
- ./:/hd-znzq/system
|
||||
ports:
|
||||
- 28000:28000
|
||||
# network_mode: host
|
||||
command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-service-1.0.0-SNAPSHOT.jar
|
||||
app-service:
|
||||
image: 172.16.2.1:8083/java:8_server-jre_unlimited
|
||||
|
||||
@@ -6,7 +6,7 @@ lim:
|
||||
heartBeatTime: 20000 #心跳超时时间 单位毫秒
|
||||
brokerId: 1000
|
||||
loginModel: 3
|
||||
logicUrl: http://172.16.2.3:28000/v1
|
||||
logicUrl: http://172.16.3.19:28000/v1
|
||||
# * 多端同步模式:1 只允许一端在线,手机/电脑/web 踢掉除了本client+imel的设备
|
||||
# * 2 允许手机/电脑的一台设备 + web在线 踢掉除了本client+imel的非web端设备
|
||||
# * 3 允许手机和电脑单设备 + web 同时在线 踢掉非本client+imel的同端设备
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
|
||||
@@ -3,7 +3,10 @@ package com.lld.im.service;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
|
||||
@EnableScheduling
|
||||
@SpringBootApplication(scanBasePackages = {"com.lld.im.service",
|
||||
"com.lld.im.common"})
|
||||
@MapperScan("com.lld.im.service.*.dao.mapper")
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.lld.im.service.taskScheduler;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class SRSStreamTask {
|
||||
@Scheduled(cron="0/5 * * * * ? ")
|
||||
public void executeTask(){
|
||||
String ip = System.getenv("SRS_HOST");
|
||||
|
||||
log.error("213132");
|
||||
log.info("========定时任务");
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
|
||||
Reference in New Issue
Block a user