In v1, I often used ${PWD} in the stacks so that I can set my “volume mounts” and the link to the .env file to the "run_directory".
In v2, ${PWD} is now only “/app”, so I can no longer perform a deployment at all.
Error from the deployment:
env file /app/.env not found: stat /app/.env: no such file or directory
In the docker compose iam using:
It seems that creating the .env file in the correct directory (run_directory) works.
In v1, I often used ${PWD} in the stacks so that I can set my “volume mounts” and the link to the .env file to the "run_directory".
In v2, ${PWD} is now only “/app”, so I can no longer perform a deployment at all.
Error from the deployment:
env file /app/.env not found: stat /app/.env: no such file or directoryIn the docker compose iam using:
It seems that creating the .env file in the correct directory (run_directory) works.