admin管理员组文章数量:1305035
I have my directories set up like this
>
.env
>unmanic
compose.yml
>overseer
compose.yml
My unmanic compose.yml looks like this
version: "3"
services:
unmanic:
container_name: unmanic
image: josh5/unmanic:latest
ports:
- 8888:8888
restart: unless-stopped
networks:
- unabatedshagie
env_file: /srv/dev-disk-by-uuid-f94e80d8-a1e4-4ee9-8ca1-dbef7eb0d715/_docker_configs/dockge_stacks_optiplex/.env
volumes:
- ${DOCKERDATAPATH}/unmanic:/config
- ${MOVIES}:/movies
more-media networks: unabatedshagie: name: unabatedshagie external: true
My .env file looks like this
PUID=1000
PGID=100
TZ=Europe/London
UMASK=002
DOCKERDATAPATH="/srv/dev-disk-by-uuid-f94e80d8-a1e4-4ee9-8ca1-dbef7eb0d715/_docker_configs"
MOVIES="/srv/dev-disk-by-uuid-680132be-a6e7-4aaa-97be-6759d66ddcfe/movies"
This doesn't work. If I remove the env_file:
line and move the .env
file into the unmanic folder it does work.
Is what I'm trying to do not possible?
It does seem to work if I'm not trying to reference the paths, the PIUD and PGID's get picked up, which is why it's confusing me.
本文标签:
版权声明:本文标题:Having problems getting a variable from a .env file to work in my docker compose file from a higher directory - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741797331a2398012.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论