mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-01 19:58:46 +08:00
feat: docker
This commit is contained in:
parent
cb970634e7
commit
42e6776a18
1
.gitignore
vendored
1
.gitignore
vendored
@ -54,7 +54,6 @@ dist.zip
|
||||
scripts/git-token
|
||||
etc/*.seg
|
||||
_upgrade_base/
|
||||
data/
|
||||
ci.sh
|
||||
*.ipr
|
||||
node_modules/
|
||||
|
27
docker/dgiot/data/service/dgiot.service
Normal file
27
docker/dgiot/data/service/dgiot.service
Normal file
@ -0,0 +1,27 @@
|
||||
[Unit]
|
||||
Description=dgiot server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/bin/sh /data/dgiot/dgiot/bin/emqx start
|
||||
User=root
|
||||
Group=root
|
||||
Environment=HOME=/data/dgiot/dgiot/erts-11.0
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot/data/service/dgiot_parse_server.service
Normal file
24
docker/dgiot/data/service/dgiot_parse_server.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=dgiot_parse_server server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/node /data/dgiot/dgiot_parse_server/server/index.js
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
27
docker/dgiot/data/service/dgiot_pg_writer.service
Normal file
27
docker/dgiot/data/service/dgiot_pg_writer.service
Normal file
@ -0,0 +1,27 @@
|
||||
[Unit]
|
||||
Description=dgiot_pg_writer server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/local/pgsql/12/bin/postgres -D /data/dgiot/dgiot_pg_writer/data
|
||||
User=postgres
|
||||
Group=postgres
|
||||
Environment=DATA_DIR=/data/dgiot/dgiot_pg_writer/data
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot/data/service/dgiot_redis.service
Normal file
24
docker/dgiot/data/service/dgiot_redis.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=dgiot_redis server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/redis/redis-server /usr/sbin/redis/redis.conf
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot/data/service/dgiot_tdengine_mqtt.service
Normal file
24
docker/dgiot/data/service/dgiot_tdengine_mqtt.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=dgiot_tdengine_mqtt server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/dgiot_tdengine_mqtt 127.0.0.1
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
26
docker/dgiot/data/service/gofastdfs.service
Normal file
26
docker/dgiot/data/service/gofastdfs.service
Normal file
@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=gofastdfs server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/data/dgiot/go_fastdfs/file /data/dgiot/go_fastdfs
|
||||
WorkingDirectory=/data/dgiot/go_fastdfs
|
||||
Environment=GO_FASTDFS_DIR=/data/dgiot/go_fastdfs
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot/data/service/nginx.service
Normal file
24
docker/dgiot/data/service/nginx.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=nginx server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/data/dgiot/nginx/sbin/nginx
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot_dashboard/data/service/nginx.service
Normal file
24
docker/dgiot_dashboard/data/service/nginx.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=nginx server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/data/dgiot/nginx/sbin/nginx
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot_db/data/service/dgiot_parse_server.service
Normal file
24
docker/dgiot_db/data/service/dgiot_parse_server.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=dgiot_parse_server server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/node /data/dgiot/dgiot_parse_server/server/index.js
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
27
docker/dgiot_db/data/service/dgiot_pg_writer.service
Normal file
27
docker/dgiot_db/data/service/dgiot_pg_writer.service
Normal file
@ -0,0 +1,27 @@
|
||||
[Unit]
|
||||
Description=dgiot_pg_writer server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/local/pgsql/12/bin/postgres -D /data/dgiot/dgiot_pg_writer/data
|
||||
User=postgres
|
||||
Group=postgres
|
||||
Environment=DATA_DIR=/data/dgiot/dgiot_pg_writer/data
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot_db/data/service/dgiot_redis.service
Normal file
24
docker/dgiot_db/data/service/dgiot_redis.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=dgiot_redis server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/redis/redis-server /usr/sbin/redis/redis.conf
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
docker/dgiot_db/data/service/dgiot_tdengine_mqtt.service
Normal file
24
docker/dgiot_db/data/service/dgiot_tdengine_mqtt.service
Normal file
@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=dgiot_tdengine_mqtt server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/dgiot_tdengine_mqtt 173.173.0.20
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
26
docker/dgiot_db/data/service/gofastdfs.service
Normal file
26
docker/dgiot_db/data/service/gofastdfs.service
Normal file
@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=gofastdfs server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/data/dgiot/go_fastdfs/file /data/dgiot/go_fastdfs
|
||||
WorkingDirectory=/data/dgiot/go_fastdfs
|
||||
Environment=GO_FASTDFS_DIR=/data/dgiot/go_fastdfs
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
27
docker/dgiot_edge/data/service/dgiot.service
Normal file
27
docker/dgiot_edge/data/service/dgiot.service
Normal file
@ -0,0 +1,27 @@
|
||||
[Unit]
|
||||
Description=dgiot server
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/bin/sh /data/dgiot/dgiot/bin/emqx start
|
||||
User=root
|
||||
Group=root
|
||||
Environment=HOME=/data/dgiot/dgiot/erts-11.0
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=300
|
||||
OOMScoreAdjust=-1000
|
||||
TimeoutStopSec=1000000s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=null
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user