Browse Source

Using ECS aliases again

feature/dockerfile-arm
Gonzalo Javier Aune 5 years ago
parent
commit
30995d28bc
  1. 2
      lnd_supervisor.conf
  2. 2
      package.json

2
lnd_supervisor.conf

@ -1,6 +1,6 @@
[program:lnd] [program:lnd]
user=root user=root
command=sh -c 'lnd --lnddir=/relay/.lnd/ --tlsextradomain=$NODE_SUBDOMAIN.$NODE_DOMAIN --externalip=$NODE_SUBDOMAIN.$NODE_DOMAIN' 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)'
startretries=999999999999999999999999999 startretries=999999999999999999999999999
autostart=true autostart=true
autorestart=true autorestart=true

2
package.json

@ -15,7 +15,7 @@
"prod": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && env NODE_ENV=production node dist/app.js", "prod": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && env NODE_ENV=production node dist/app.js",
"tsc": "rm -rf dist/ && tsc && cp -r public dist/public", "tsc": "rm -rf dist/ && tsc && cp -r public dist/public",
"dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js", "dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js",
"start-ecs": "export NODE_ALIAS=$NODE_SUBDOMAIN.$NODE_DOMAIN && export NODE_IP=$NODE_SUBDOMAIN.$NODE_DOMAIN && export NODE_ENV=production && node dist/app.js" "start-ecs": "export NODE_ALIAS=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName)) && export NODE_IP=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName).$NODE_DOMAIN) && export NODE_ENV=production && node dist/app.js"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

Loading…
Cancel
Save