cht-core icon indicating copy to clipboard operation
cht-core copied to clipboard

add init / avoid removing .env

Open delcroip opened this issue 1 year ago • 6 comments

add init to start from env file, this is usefull for duplicating a project for instance to create a dev version

remove just rename .env to avoid loosing the db key

Project name added on the compose to be able to still use docker-compose command

correct URL if COMMOM_NAME used

delcroip avatar Jun 25 '23 09:06 delcroip

i see your point with init, so I create recreate to start for an existing env file and init just create an env file

delcroip avatar Jul 05 '23 11:07 delcroip

here the doc for PROJECT_NAME https://docs.docker.com/compose/reference/#use--p-to-specify-a-project-name

delcroip avatar Jul 05 '23 11:07 delcroip

Hi @delcroip - I was on holiday for the month of July - sorry for the delay in getting back to you. I'll jump into this PR in the next week or so.

mrjones-plip avatar Aug 02 '23 20:08 mrjones-plip

Thanks for the continued work on this!

After jumping back into the code, I think I'm lacking a larger picture of what the use case is here for init and recreate. Can you do a brief write up of the real world problem you're trying to solve?

mrjones-plip avatar Aug 04 '23 23:08 mrjones-plip

@delcroip Thanks for this! Do you have time to dust it off and work on the feedback that @mrjones-plip shared?

garethbowen avatar Jan 25 '24 09:01 garethbowen

Thx I will check, i am currently checking using container_name directive In the compose to allow both the scripts and plain compose usage

delcroip avatar Jan 25 '24 09:01 delcroip