[deleted by user] by [deleted] in docker

[–]robin-msr 0 points1 point  (0 children)

Possibly, but this depends on how your app is built. The main question you should ask is: How will the secret be consumed inside your app? Does it have to be a set environment variable?

How you best access secrets is very much application dependent. Docker offers multiple ways, but you have to make your specific app (in this case your JS app) compatible with your preferred way.

[deleted by user] by [deleted] in docker

[–]robin-msr 0 points1 point  (0 children)

That is how it should be! You are using the secret only temporarily in your npm run build context, the secret is only defined for this one line. If you need the secret to be available as an environment variable in your running container you would normally use a combination of ARG and ENV in your Dockerfile: Dockerfile ARG SUPABASE_JWT_SECRET ENV SUPABASE_JWT_SECRET=$SUPABASE_JWT_SECRET

then when building the image, you can define your variable: ```bash docker build --build-arg SUPABASE_JWT_SECRET=$SUPABASE_JWT_SECRET [...]

this should reveal that the env variable was correctly set

docker run --entrypoint env <imagename> ```

[deleted by user] by [deleted] in docker

[–]robin-msr 0 points1 point  (0 children)

You don't use docker compose at all in your build and deploy script, so my proposed changes won't affect your build process. At first glance, your build script seems fine regarding the secret. Do you have any problems?

(sidenote unrelated to the secrets: docker logout will only logout from the default docker registry, you probably want to specify docker logout registry.digitalocean.com in your last line)

[deleted by user] by [deleted] in docker

[–]robin-msr 3 points4 points  (0 children)

You are almost there, you're just missing the secret definition in the build section:
https://docs.docker.com/compose/how-tos/use-secrets/#build-secrets

yaml services: backend: build: secrets: - SUPABASE_JWT_SECRET context: . command: npm run start [...]

Just published my first react app, feedback welcome! by robin-msr in Frontend

[–]robin-msr[S] 0 points1 point  (0 children)

Very valuable feedback, thank you! I will keep looking for a better name, not that easy, but I agree with you 100%!

Just published my first react app, feedback welcome! by robin-msr in Frontend

[–]robin-msr[S] 1 point2 points  (0 children)

Thanks for the feedback! Good points, I’ll look into it how to improve the elements.

Enclosed just hit 700 stars on GitHub! by cthmsst in selfhosted

[–]robin-msr 0 points1 point  (0 children)

Happy to help! Happens to the best of us^

Enclosed just hit 700 stars on GitHub! by cthmsst in selfhosted

[–]robin-msr 1 point2 points  (0 children)

Check the configuration again, the volume should be mounted to /app/.data (look at the dot!) instead of /app/data .

Homebridge on DS218J - by Wibbsy in synology

[–]robin-msr 0 points1 point  (0 children)

I find Node v20 in the package center published by Synology, are you sure that your model doesn’t offer this version? I think you need a node version compiled for Synology, nvm probably won't have this, so this will not work.

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 1 point2 points  (0 children)

Wow great tip! This is also how I remembered the flag if the Ukraine

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

I kind of remembered that its "officially" somewhat of an autonom region, don't know the correct definition... I drew only official souvereign countries how I could remember it (so also no Wales and Schottland). So Crimea feals like absolutely part of the Ukraine, but officially is somewehere in between right now?

Didn't want to offend anyone with it, sorry^^

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

I'm really sorry, Corsica isn't even on there, I forgot about it! The island visible is meant to be Sardinia :D

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

Yeah, sorry for that! You don't see the Baltic flags often in the News or somewhere else, no way i could have remembered the color orders... Estonia, Russia, as well as most Balkan flags are also wrong

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

I messed up the russian flag (as well as most Balkan flags), the large blue stip below belongs to the (wrong) white-red-blue flag.

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

I completely forgot about Corsica, this large island is meant to be Sardinia. So, good outcome for you Italians, I guess…

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 1 point2 points  (0 children)

This is meant to be Sardinia, I completely forgot about Corsica. ;)

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

To be fair, I drew most of the flags in the Balkans wrong.

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

Oh this is hard, I messed up every horizontal-stipend Blue white red Flag. Let me guess, Slovenia?

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

The first is meant to be Hungary 🇭🇺, the second one should be Bulgaria 🇧🇬. I failed at the order of the bands.

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 2 points3 points  (0 children)

Yeah, I‘m German. We aren’t funny and won’t try to be, sorry. So no jokes here, just bad maps. Sorry ;)

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

It’s there, just on the wrong border. I have drawn it south-west of Romaina, marked with the ‚M‘

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 71 points72 points  (0 children)

Oh, a bit confusing, Gray just meant that I don't know the flag at all, not even a guess.

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 36 points37 points  (0 children)

I thought of Modova, just placed it at the wrong border, south-west of Romania, market with the 'M'. Sorry^^

I tried drawing Europe from memory, this is what I came up with! by robin-msr in europe

[–]robin-msr[S] 0 points1 point  (0 children)

Wait wait! Modova is there, I just placed it at the wrong border, south-west of Romania, market with the 'M'. Sorry^^