H
Homarr14mo ago
J

how to add password using docker-compose.yml file?

Please tell me how to add a password variable in the docker-compose.yml file.
13 Replies
Manicraft1001
Manicraft100114mo ago
Hi, what version of Homarr do you use? Do you use latest or dev?
J
J14mo ago
🚀 Installation | Homarr Docs
Homarr can be installed in many ways. For most users, Installation using Docker will be sufficient and the easiest.
J
J14mo ago
this one docker compose file
Manicraft1001
Manicraft100114mo ago
https://stackoverflow.com/a/50201232 I'd recommend you to put them directly in the docker-compose, but an external .env file works too.
Stack Overflow
How can I use environment variables in docker-compose?
I would like to be able to use environment variables inside docker-compose.yml, with values passed in at the time of docker-compose up. This is the example. I am doing this today with a basic docke...
Manicraft1001
Manicraft100114mo ago
🐳 Docker Configuration | Homarr Docs
Homarr offers a Docker Container, which can be run on any compatible system, such as Unraid, Kubernetes and many more systems! Our Docker container is based on the node:16-alpine image and serves per standard on the port 7575.
J
J14mo ago
docker run \ --name homarr \ --restart unless-stopped \ --tz Europe/Paris \ -p 7575:7575 \ -v <your-path>/homarr/configs:/app/data/configs \ -v <your-path>/homarr/icons:/app/public/icons \ -d ghcr.io/ajnart/homarr:latest here is p for port so what will be for password
Manicraft1001
Manicraft100114mo ago
No? You said, that you use docker compose? I am confused. Do you use compose or run?
J
J14mo ago
is this correct??
No description
Manicraft1001
Manicraft100114mo ago
No.
environment:
PASSWORD: "ABC"
environment:
PASSWORD: "ABC"
Like in the link I sent above:
my-service:
image: ${IMAGE_NAME}
environment:
MY_SECRET_KEY: ${MY_SECRET_KEY}
my-service:
image: ${IMAGE_NAME}
environment:
MY_SECRET_KEY: ${MY_SECRET_KEY}
J
J14mo ago
Okay, thanks, it worked.
Thomas
Thomas14mo ago
@Ke Launda if you want you can become an insider in #✨・roles , change your homarr version to :dev instead of latest and try out the newest version of authentification that has a LOT of new features 😉
J
J14mo ago
Okay, I will
Thomas
Thomas14mo ago
Thanks 😄
Want results from more Discord servers?
Add your server