Docker Compose versions earlier than 1.28, load the .env file from the current working directory, where the command is executed, or from the project directory if this is See the Working with mods and plugins section to set up Fabric mods and and are not excluded by REPLACE_ENV_VARIABLES_EXCLUDES and REPLACE_ENV_VARIABLES_EXCLUDE this can be done with the docker env variable -e JVM_DD_OPTS=disable.watchdog:true. (docker-compose.yml file:) version: '3' services: plex: image: linuxserver/plex env_file: env_file_name Relvant docs. If the value is not specified in the task, the value of environment variable DOCKER_HOST will be used instead. jobs.
docker env variables not working