How to provide self-hosted admin URL

@alex_noel @bharath_bhat

The main problem I have with tmp.json and ormconfig.json, with their rights.

I tried already a lot of different approaches, the main issue here is hidden on this line on the command section:
jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json > tmp.json && mv tmp.json ormconfig.json && \

When I run it I get the following error: sh: can’t create tmp.json: Permission denied

So, I fixed it with changing the tmp.json path:

But it still no shows error, same with mv, mv -f, cp, cp -f:
jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json > /tmp/tmp.json && mv -f /tmp/tmp.json ormconfig.json && \

jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json > /tmp/tmp.json && cp /tmp/tmp.json ormconfig.json && \

I get the following error connected with ormconfig.json:

plasmic-wab-1  | + jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json
plasmic-wab-1  | + cp /tmp/tmp.json ormconfig.json
plasmic-wab-1  | cp: can't create 'ormconfig.json': File exists
plasmic-wab-1 exited with code 1

When I use a direct file creation another command:

jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json > /tmp/tmp.json && \
mv /tmp/tmp.json ormconfig.json && \

Same for this

jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json > /tmp/tmp.json && cp -f /tmp/tmp.json ormconfig.json && \

plasmic-wab-1  | + jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json
plasmic-wab-1  | + cp -f /tmp/tmp.json ormconfig.json
plasmic-wab-1  | cp: can't create 'ormconfig.json': File exists
plasmic-wab-1 exited with code 1

So, I really don’t know what to do with this ormconfig.json file.

This is how I debug it, but jq line command should be diffrent:

command:
    - |
      set -x
      jq '(.host = "plasmic-db") | (.password //= "SEKRET")' ormconfig.json > /tmp/tmp.json && cp -f /tmp/tmp.json ormconfig.json && \
      yarn typeorm migration:run --verbose && \
      yarn seed --verbose && \
      cd /plasmic && \
      yarn dev --verbose

Maybe you have any ideas, my host system is Alpine Linux.
I tried to install node gobally and locally, nothing helps.
I deployed already successfully with bare yarn, but never with docker compose.

Thank you.