Variables when installing Docker Apps


teh0wner

Recommended Posts

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
 

Link to comment
  • 5 years later...

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 by blinkito
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.