Each service needs its own reference to environment variables. You’ll want to add it to the phoenix service too.
You could also put those ENV variables into a file, such as a .env file and then load it in both services with env_file in compose (instead of inlining and duplicating them with environment).






















