D
Dokploy13mo ago
EAlcazar

Env variables

Hey team, other tools similar to Dokploy that I've worked allow you to define env variables for your project when setting up a service. I couldn't find that option in the app or docs, so I'm assuming it's not available. What's the recommended approach for handling env vars in Dokploy? Right now, I'm thinking of configuring them on the VPS and having the Dockerfiles pick them up. Another option could be to pass the variables as build args, like this:
ARG name
ENV env_name $name
ARG name
ENV env_name $name
And then building the Docker image with docker build -t image_name --build-arg name=Enrique. Is anyone using a different approach that they'd recommend? Am I missing something obvious?
No description
2 Replies
Siumauricio
Siumauricio13mo ago
mm you cannot pass args, what's your usecase why do you need args?
EAlcazar
EAlcazarOP13mo ago
Nope, I'm dumb, it's here right next to general I missed the environment section MB

Did you find this page helpful?