How to add JSON content as env var

Open
#5,180 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
docker, typescript

Research direction

Start by tracing the environment editor and the auto-deploy Compose path for the GitHub provider. Determine how multiline JSON values are currently parsed and passed to deployments, then define done as supporting the service-account variable without requiring base64 encoding or an unsupported file mount.

Written by the indexing model from the issue text.

Description

enhancement question

For example GOOGLE_SERVICE_ACCOUNT_CREDENTIALS_JSON.

The trick in Env editor not support multiline variables · Issue #488 · Dokploy/dokploy didn't work.

The only workaround I can think of is base 64 (requiring server code to decode it).

File mount didn't work for auto-deploy compose (GitHub provider):

    volumes:
      - ../files/:/files/:ro
Will you send a PR to implement it?

No

Dominant language
TypeScript
Stars
38.2k
Forks
3.1k
Avg merge
2d 11h
Merged PRs (30d)
65

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Dokploy/dokploy

All issues in Dokploy/dokploy

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.