-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
62 lines (58 loc) · 2.19 KB
/
compose.yml
File metadata and controls
62 lines (58 loc) · 2.19 KB
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
services:
jtt808:
image: transcodegroup/jtt808-server:latest
container_name: jtt808_server
restart: always
ports:
- ${JTT808_PORT}:${JTT808_PORT}
- ${JTT808_PORT_HTTP}:${JTT808_PORT_HTTP}
- ${JTT808_PORT_FILE}:${JTT808_PORT_FILE}
- ${JTT808_PORT_FTP}:${JTT808_PORT_FTP}
- ${JTT808_PORT_FTP_ACTIVE}:${JTT808_PORT_FTP_ACTIVE}
- ${JTT808_PORT_FTP_PASSIVE}:${JTT808_PORT_FTP_PASSIVE}
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/data/jtt808:/data/jtt808"
- "/data/logs/jtt808:/logs"
environment:
- JAVA_TOOL_OPTIONS=-Xms1024m -Xmx2048m
# 监听端口
- gateway_ip=${JTT808_IP:?required}
- gateway_port=${JTT808_PORT}
- gateway_api-port=${JTT808_PORT_HTTP}
- gateway_file-port=${JTT808_PORT_FILE}
# FTP服务
- gateway_ftp_ip=${JTT808_IP:?required}
- gateway_ftp_port=${JTT808_PORT_FTP}
- gateway_ftp_active_port=${JTT808_PORT_FTP_ACTIVE}
- gateway_ftp_passive_ip=${JTT808_IP:?required}
- gateway_ftp_passive_ports=${JTT808_PORT_FTP_PASSIVE}
# 终端注册服务
- gateway_device-register-url=${WEB_BASE_URL}
# 网关Http服务, 需要代理?
- gateway_http_url=${WEB_BASE_URL}/jtt808
# MongoDB
- spring_data_mongodb_host=${MONGODB_HOST:-mongodb}
- spring_data_mongodb_port=${MONGODB_PORT:-27017}
- spring_data_mongodb_username=${MONGODB_USERNAME:?required}
- spring_data_mongodb_password=${MONGODB_PASSWORD:?required}
# RabbitMq
- spring_rabbitmq_host=${RABBITMQ_HOST:-rabbitmq}
- spring_rabbitmq_port=${RABBITMQ_PORT:-5672}
- spring_rabbitmq_username=${RABBITMQ_USERNAME:-admin}
- spring_rabbitmq_password=${RABBITMQ_PASSWORD:?required}
- spring_rabbitmq_virtual-host=/track
# 网关日志写法1
- logging_level_root=INFO
- logging.level.io.netty.handler.logging.LoggingHandler=INFO
# 网关日志写法2
# - SPRING_APPLICATION_JSON={"logging.level.io.netty.handler.logging.LoggingHandler":"DEBUG"}
logging:
driver: "json-file"
options:
max-size: "100m"
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000