Notes on programming

submited by
Style Pass
2021-07-15 07:30:01

I use docker compose pretty much for everything. I remember at one point I even was maintaing a production application with docker compose. I would copy the docker-compose.yml file to the server and then start the containers manually.

I really liked how simple it was. There was nothing to maintain apart from the same docker compose file I used during development! Managing secrets was annoying though. Not impossible, but mighty annoying.

Over the years I’ve tried multiple approaches - I’ve tried creating .env file, I’ve tried writing a shell script, I’ve templated the docker-compose.yml, I’ve even hard coded secrets in docker-compose.yml (don’t do that). None of the approaches truly made me think “yeah, this is nice”. It was more like “hope no one sees this xoxo”.

Turns out the double dash is used by most shells as a delimiter indicating the end of the options after which only positional arguments are accepted.

Leave a Comment