Gonzalo Javier Aune
5 years ago
7 changed files with 16 additions and 9 deletions
@ -0,0 +1,6 @@ |
|||||
|
# export NODE_DOMAIN=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName).$NODE_DOMAIN) |
||||
|
export NODE_DOMAIN=lvh.me |
||||
|
export NODE_ALIAS=$HOSTNAME |
||||
|
export NODE_IP=$NODE_SCHEME://$NODE_DOMAIN |
||||
|
|
||||
|
/usr/bin/supervisord |
@ -1,6 +1,6 @@ |
|||||
[program:lnd] |
[program:lnd] |
||||
user=root |
user=root |
||||
command=sh -c 'lnd --lnddir=/relay/.lnd/ --alias=$HOSTNAME --tlsextradomain=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName).$NODE_DOMAIN) --externalip=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName).$NODE_DOMAIN)' |
command=sh -c 'lnd --lnddir=/relay/.lnd/ --alias=$HOSTNAME --tlsextradomain=$NODE_DOMAIN --externalip=$NODE_DOMAIN' |
||||
startretries=999999999999999999999999999 |
startretries=999999999999999999999999999 |
||||
autostart=true |
autostart=true |
||||
autorestart=true |
autorestart=true |
@ -1,6 +1,6 @@ |
|||||
[program:relay] |
[program:relay] |
||||
user=root |
user=root |
||||
command=sh -c 'export NODE_ALIAS=$HOSTNAME && export NODE_IP=$NODE_SCHEME://$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName).$NODE_DOMAIN) && npm run start-ecs --prefix /relay/' |
command=sh -c 'npm run start-ecs --prefix /relay/' |
||||
startretries=999999999999999999999999999 |
startretries=999999999999999999999999999 |
||||
autostart=true |
autostart=true |
||||
autorestart=true |
autorestart=true |
Loading…
Reference in new issue