When creating a new service like pygeoapi with a new name from a duplicated directory, quite some changes have to be made in the copy of the docker-compose.yml file. Using Docker variables may reduce this work significantly.
Proposed Solution
Using a local Bash env.sh (more flexible than Docker env files) and using symblic variables can greatly reduce efforts and errors. In fact already tested ok:
When creating a new service like
pygeoapi
with a new name from a duplicated directory, quite some changes have to be made in the copy of thedocker-compose.yml
file. Using Docker variables may reduce this work significantly.Proposed Solution
Using a local Bash
env.sh
(more flexible than Docker env files) and using symblic variables can greatly reduce efforts and errors. In fact already tested ok:and
env.sh
(sourced bystart.sh
andstop.sh
:Now the
docker-compose.yml
can even remain untouched for a newpygeoapi
endpoint!