https://netmaker.org logo
Title
a

acoustic-petabyte-50388

07/27/2022, 12:59 PM
In futur netmaker gonna support .env file like docker-compose do ? it's can be super for large déploiement ;) One command > start many all node with static ip address ;)
j

jolly-london-20127

07/27/2022, 4:50 PM
currently no plans for a .env for nodes, though would be fairly easy to implement. Most fields can be set via environment variables which can also be set in compose
a

acoustic-petabyte-50388

07/27/2022, 4:51 PM
Thx, i was thinking for docker native OS version ;)
j

jolly-london-20127

07/27/2022, 4:55 PM
I'm not sure I understand
a

acoustic-petabyte-50388

07/27/2022, 5:48 PM
Ok in when you have docker-compose.yml you can have sometime 5 times the same password or name or value whatever, when you wan't to edit or change this value you need to change it 5 times normaly but when you have .env in the same directory where is you docker-compose.yml you can have in your docker-compose some value like : $DBPASSWORD or $MYID or $PATHDB and in inside your .env file you need to do something like this : DBPASSWORD=helloiamDBpassword MYID=IamTHEID PATHDB=/root/Config/MYDB😅 You change one time the value in .env for all the time the value is needed in your docker-compose When you have multiple machine and you use ansible or pssh you could simply juste do docker-compose up -d and all docker-compose start with différent value ;) And my i think having file like .env (or use the same .env i have now) with native netmaker could be insane, when change something or add new node or clean install a node or whatever i am sure my node gonna have the same ip or the same hostname for dns ;)