teh0wner Posted December 14, 2018 Share Posted December 14, 2018 Greetings, Installed unRAID yesterday and I'm thoroughly impressed, however, I've got a question with regards to using Docker apps. Coming from docker-compose, I could create an .env file, where I could stick in 'common stuff' and use via variables in docker-compose.yml. For example my .env could look like : PUID=1000 PGID=1000 TZ="London/Europe" and use that throughout docker-compose.yml as such : organizr: container_name: organizr hostname: organizr restart: always image: lsiocommunity/organizr volumes: - ${ROOT}/Docker/organizr:/config - ${ROOT}/Docker/shared:/shared ports: - "9000:80" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} Is there a way I can achieve the same in unRAID? Thanks Quote Link to comment
itimpi Posted December 14, 2018 Share Posted December 14, 2018 No problem - the Docker GUI supports adding variables when configuring a container. Obviously you then need the container to internally make use of these variables. Quote Link to comment
blinkito Posted March 25 Share Posted March 25 (edited) Hi there, Could you tell me how can I create that .env file in Unraid? I mean, of course I can do it on the terminal, but do I need to have any consideretions first? Does it need to be at any specific location? And what about permissions? Thank you! Edited March 25 by blinkito Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.