Currently, my docker-compose.yml is building an image. I have an image from a 3rd party that I need to add alongside my own, which my own image will be dependent on. When running the 3rd party image independently, I need to pass an argument to it like this:
docker run third_party/image --argument_flag
How do I translate this into the docker-compose.yml so that the argument_flag gets passed. Here is my yml (names have been generalized).
version: '3'
services:
my_app:
build: .
volumes:
- .:/my_app_folder
depends_on:
- "third_party"
third_party:
image: third_party/image
ports:
- "8050:8050"