We have something like this in our docker-compose file:
services:
myapp:
build: .
image: my-app-image:uat
ports:
- "8080:8080"
environment:
- SERVER_SERVLET-PATH=/
- SERVER_PORT=80
- more variables.....
What comes after environment are lots and lots of variables that our application needs. This makes in quite a hassle to look and examine the file due to the high number of variables. Also makes it look kinda dirty. Is there a way to place all environment variables in another file and just reference it?
Sorry i'm just new to docker. Tried looking for this in the docker site but couldn't find any.
Help would be appreciated. Thanks