I was running my container (postgresql) previously by just doing a super long “one-liner” of docker run…
I recently created a docker-compose.yml file to spin up my container however I don’t have any of the environment configurations simply because my volume is persistent and already configured prior to me using the yaml config.
Is it OK to not have the environment stanza in my config?
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres