feat: 本番用の設定ファイルを追加
This commit is contained in:
parent
55bbc69043
commit
32c4e498f9
10
ec2/gateway/product/public1-1/socat-dbconnection-1a.service
Normal file
10
ec2/gateway/product/public1-1/socat-dbconnection-1a.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description = socat-dbconnection-1a
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart = /opt/socat-portforwarding-1a.sh
|
||||||
|
Type = oneshot
|
||||||
|
RemainAfterExit = yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy = default.target
|
||||||
3
ec2/gateway/product/public1-1/socat-portforwarding-1a.sh
Normal file
3
ec2/gateway/product/public1-1/socat-portforwarding-1a.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
socat tcp4-listen:40001,reuseaddr,fork TCP:mbj-newdwh2021-product-dbcluster-instance-1.chs11qsgoyix.ap-northeast-1.rds.amazonaws.com:3306 &
|
||||||
|
socat tcp4-listen:50001,reuseaddr,fork TCP:mbj-newdwh2021-product-dbcluster.cluster-chs11qsgoyix.ap-northeast-1.rds.amazonaws.com:3306 &
|
||||||
10
ec2/gateway/product/public2-1/socat-dbconnection-1d.service
Normal file
10
ec2/gateway/product/public2-1/socat-dbconnection-1d.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description = socat-dbconnection-1d
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart = /opt/socat-portforwarding-1d.sh
|
||||||
|
Type = oneshot
|
||||||
|
RemainAfterExit = yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy = default.target
|
||||||
3
ec2/gateway/product/public2-1/socat-portforwarding-1d.sh
Normal file
3
ec2/gateway/product/public2-1/socat-portforwarding-1d.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
socat tcp4-listen:40001,reuseaddr,fork TCP:mbj-newdwh2021-product-dbcluster-instance-1-ap-northeast-1d.chs11qsgoyix.ap-northeast-1.rds.amazonaws.com:3306 &
|
||||||
|
socat tcp4-listen:50001,reuseaddr,fork TCP:mbj-newdwh2021-product-dbcluster.cluster-chs11qsgoyix.ap-northeast-1.rds.amazonaws.com:3306 &
|
||||||
Loading…
x
Reference in New Issue
Block a user