I have a docker-compose that has
myimage:
image: myimage:latest
environment:
MY_VAR: "something"
the container uses MY_VAR internally, and sometimes in automated testing I'd like to restart that specific container with a different MY_VAR (to simulate a process restart with different environment variable settings)
Is there a way to do this while keeping the rest of the docker-compose container up?