DokployD
Dokploy2y ago
3 replies
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

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?
image.png
Was this page helpful?