Declaring variables in docker-compose
You cannot define $VERSION
inside the docker-compose.yml
.
You have two options for this:
- define it in a
.env
file - send as a command line argument when you run the
docker-compose
command. e.g.VERSION=0.2.3 docker-compose up -d