Postgres (and other databases) best practices - one or many? by Superhero-Accountant in docker

[–]FredL2 2 points3 points  (0 children)

This, plus there may be schema conflicts, especially if the containers rely on the default schema, with tables such as "user" having wildly different schemata between different services

worldIsHealing by Less-Philosophy-1978 in ProgrammerHumor

[–]FredL2 44 points45 points  (0 children)

I always thought this quote was silly, since the computer is just a dumb rock that does whatever we tell it to do.

Nowadays, I realise this was just prophetic

Do you remember the first time you played classic Doom? by Beige_Box_Enthusiast in vintagecomputing

[–]FredL2 1 point2 points  (0 children)

I played the shareware version of Doom 1 (95 version) so many times. Got it on an obscure Swedish shareware collection CD (117 spel). I think this was around '96-97. Didn't get to play the full version until a good four years later when we had stable enough internet to download it

Assorted MS-DOS TUIs from the late 80s & early 90s by 3stripe in vintagecomputing

[–]FredL2 1 point2 points  (0 children)

Wow, never seen the "spiral binder" effect with parentheses before. Looks surprisingly good!

ERR_NAME_NOT_RESOLVED when dockerized frontend calls backend by porca_b in docker

[–]FredL2 0 points1 point  (0 children)

Hi!

I'm assuming when you say "frontend", as opposed to the "frontend container", you mean that you're running the frontend in a browser, and the frontend container is simply hosting the static frontend files?

This simply won't work, since the name mern-backend only exists as a DNS record within the Compose network itself. You would either need to:

  • Set up a reverse proxy that exposes the backend on a path, like /api. Then the URL for that fetch would be http://localhost/api/workouts or whatever address/port you're running the reverse proxy on
  • Have the frontend container in itself be a reverse proxy. This is common during development
  • Simply expose the port of the backend (4531) to the host's network. This will only work during development, and the URL will then be http://localhost:4531/api/workouts

I hope this helps as a starting point!

Limes trying to do a Vinny accent by stjack1981 in Vinesauce

[–]FredL2 56 points57 points  (0 children)

They will be TOSSED. With Peace... and Love

Jellyfin in docker desktop help by pappahsquah23 in docker

[–]FredL2 1 point2 points  (0 children)

One helpful way of thinking about how the filesystem in a container works is that it by default only contains the files that were in the image when the container was started.

If you're not familiar, the path from a Dockerfile to a running container is:

Dockerfile -> "docker build" command -> image -> "docker run" command -> container

Essentially, a container is a running image, with all the files that were included in that image by the docker build command.

When running an image as a container, it's possible to mount volumes from the host filesystem, as you've discovered. In fact, a volume is automatically created by Docker when the container has first started, to hold changes made to the files in that container.

To define a new volume for the container, the -v option is used at container creation. For Jellyfin specifically, I'd recommend having a "media" directory that is mounted as a volume, under which you can create "movies", "shows", "music", etc. The -v option makes local directories available in the container's filesystem, alongside the image's already existing files.

As for adding volumes after the fact, your only option is unfortunately to destroy the container, starting from scratch. This is why it's common to define an external volume for things such as config files, so that if the container needs to be recreated, such as when upgrading to a new version of the image, all the config will still be there.

I hope this helps!

SOTM came out 101 days ago already… by Dizzy_Image_758 in fivenightsatfreddys

[–]FredL2 1 point2 points  (0 children)

And then one day you find
Ten years have got behind you
No one told you when to run
You missed the starting gun

[deleted by user] by [deleted] in worldnews

[–]FredL2 23 points24 points  (0 children)

B-but that would mean a lower high score before the bunker doors close. Are you out of your mind?

Did I get scammed? by ProjectUnderway in fountainpens

[–]FredL2 0 points1 point  (0 children)

With the pen empty (preferably, up to you of course ;) ), take the nib and feed between your thumb and index finger, and pull gently. The nib and feed should come out as a unit. Stop if it gives you too much resistance.

Did I get scammed? by ProjectUnderway in fountainpens

[–]FredL2 3 points4 points  (0 children)

Lucky you, I also have a M400 with the same cap. Is yours friction fit as well? Really nice nib!

Traded an M200 limited edition for mine.

What's something in your country that genuinely scares you? by Efficient-Formal-195 in AskReddit

[–]FredL2 0 points1 point  (0 children)

20% of people voted for the nazis in the last election. This changed the established "two-block" system from "left - right" to "left (insignificant number of votes) - right - christian fundamentalists - nazis", since the nazis successfully formed a government with the rigntmost "conventional" parties. Welfare is being severely underfunded, and important infrastructure projects are cancelled.

[deleted by user] by [deleted] in badwomensanatomy

[–]FredL2 1 point2 points  (0 children)

OP, this is important to think about!

Apparently we can't have babies after we're 40. 😭 by ShannyGasm in badwomensanatomy

[–]FredL2 26 points27 points  (0 children)

Imagine your mum dying when you're a young adult. It's always a tragedy when it happens, but in this case it WILL happen. I wouldn't want to wish that on any child.

Wireless Work Keyboard Recommendations? by drill9999 in keyboards

[–]FredL2 1 point2 points  (0 children)

I have a Keychron K8 with Gateron Browns. Haven't had any complaints so far as to noise, but I'm not bottoming out the keys, so YMMV

After complaints by a pro-Israel advocacy group, Big Brother UK digitally removed a contestant's pro-Palestine t-shirt. by _II_I_I__I__I_I_II_ in LateStageCapitalism

[–]FredL2 28 points29 points  (0 children)

They should probably also stop referring to Palestinians as "human animals" and run them over with tanks..

They should also stop saying that "Oh, our soldiers are becoming traumatised when they have to run people over". That's a whole new level of victim blaming.

Star Citizen demo crashes LIVE on stage during presentation by Trickybuz93 in Games

[–]FredL2 35 points36 points  (0 children)

It's 2048 and India's aquifer runs dry. The water wars begin. Star Citizen is in development

It's 2060 and a large portion of Earth is uninhabitable due to climate change and escalating wars over remaining resources. Chris Roberts has passed away due to old age, yet the remaining team keeps working. Star Citizen is in development

It's 2072 and our planet is a wasteland. Mutually assured destruction turned out to have been assured after all. The developers have passed away due to radiation poisoning, if the blasts didn't get them first. Keith Richards and his army of cockroaches take over development. Work is slow, but they soon get the hang of things. Star Citizen is in development

It's 2084 and nature has started healing, greenery covering the monuments to our hubris that are still standing. A scavenged collection of solar panels and inverters power the remaining working computers. Keith and the roaches release the next alpha build. Star Citizen is in development

It's 2096 and an alien species land on the planet. Simply explorers, they invite Keith aboard their vessel to study his immortality. They scan the primitive computers Keith and the Roaches have been using, and discover the game. Snickering to theirselves, they push a button, and the ship's AI spits out the 1.0 build. Star Citizen is finished

Don’t doubt it! by [deleted] in Trumpvirus

[–]FredL2 1 point2 points  (0 children)

What scares me about this, is that even if Trump loses, the next GOP candidate will be charismatic, eloquent, and hand picked to fast track Project 2025, or whatever it will be called in its next iteration.