[Help] Config and docker-compose
See original GitHub issueHey guys !
I’m using docker-compose for my mysql server, but I’m quite annoyed by having connection configuration in two different places:
docker-compose.yml
ormconfig.json
Would you have some ideas how to keep the connection in only one place ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Overview | Docker Documentation
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services....
Read more >Compose specification - Docker Documentation
The Compose file is a YAML file defining version (DEPRECATED), services (REQUIRED), networks, volumes, configs and secrets. The default path for a Compose...
Read more >Overview of docker compose CLI
Overview of docker compose CLI · Command options overview and help · Use -f to specify name and path of one or more...
Read more >Share Compose configurations between files and projects
Docker Compose's extends keyword enables the sharing of common configurations among different files, or even different projects entirely. Extending services is ...
Read more >Compose file version 3 reference - Docker Documentation
This table shows which Compose file versions support specific Docker releases. ... Top-level keys that define a section in the configuration file such...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jcloutz you can also load the .env file within docker-compose using
env_file
instead of enumerating each value:You don’t need to do that with docker-compose, it loads the
.env
file automatically. https://docs.docker.com/compose/environment-variables/#the-env-file