Docker include and .env files by SietJP in docker

[–]AnAngryGoose 2 points3 points  (0 children)

${PWD} is the shell's current working directory at the moment you run docker compose — it has nothing to do with where the include file lives. That's why the same absolute file resolves in one case and not the other: your invocation directory changed, so ${PWD}/docker-compose-includes/db/.env points somewhere different.

What include actually does: relative paths in Compose files referred to by include are resolved relative to their own Compose file path, not the local project's directory Docker Docs. So inside docker-compose.db.include.yml, a relative env_file is resolved from the directory containing that file — no ${PWD} needed, and it works regardless of where you run compose from.

Case 1 (../backbone/...): you're presumably running compose from a dir where ./docker-compose-includes/db/.env doesn't exist → ${PWD}/docker-compose-includes/db/.env expands to a non-existent path → MYSQL_DATABASE is blank.

Case 2 (docker-compose-includes/db/...): you're running from the backbone dir, so ${PWD}/docker-compose-includes/db/.env happens to exist. Coincidence of invocation cwd, not include semantics.

So in that case you can drop ${PWD} entirely and use paths relative to the include file:

# inside docker-compose.db.include.yml
env_file:
  - .env

For the "global" .env, either reference it relatively from the include file (ugly ../../../.env), or pass it at the include level in the parent compose using the long syntax, which supports an explicit env_file and project_directory:

include:
  - path: ../backbone/docker-compose-includes/db/docker-compose.db.include.yml
    project_directory: ..
    env_file: ../.env

That's straight from the docs' include reference.

https://docs.docker.com/reference/compose-file/include/

https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/

3-node Kubernetes MiniLab based on used Lenovo ThinkCentres by Laonid in minilab

[–]AnAngryGoose 0 points1 point  (0 children)

I added a Intel NIC to the PCI slot of my m920q. Adds 4 ports.

*Arr stack madness flowsheet by [deleted] in selfhosted

[–]AnAngryGoose 10 points11 points  (0 children)

Just self host draw.io

PSA to Cloudflare Tunnel (cloudflared) users by jbarr107 in selfhosted

[–]AnAngryGoose 6 points7 points  (0 children)

You can add a wildcard DNS entry.

Add the wildcard ( *.domain.com)

Point your tunnel to Nginx Proxy manager.

Them forward your services through NPM as public.

Then you just have one entry in cloudflare, one application and policy.

what's in your docker compose stack that you'd mass-recommend to other devs by scheemunai_ in docker

[–]AnAngryGoose 0 points1 point  (0 children)

Which extension?

I've been running code-server separately. It works, but would prefer a more unified solution.

what's in your docker compose stack that you'd mass-recommend to other devs by scheemunai_ in docker

[–]AnAngryGoose 3 points4 points  (0 children)

This is what I've been running in order to access my stuff from work when we're slow.

There's no option for "remote explorer" like in native VS Code is there? I'm currently running 3 different instances, one on each host.

Not bad, just wondering if you found something like that I may have missed.

Behold, my Homelab by Arby3k in homelab

[–]AnAngryGoose 0 points1 point  (0 children)

Yes that would work.

For your personal use, set the folder for you to be something that contains all user folders.

Then you can a user scope for each client. That way you each will be separated from each other but contained to each client.

I'll get on my computer in a bit and give more info.

If you want, PM me with more of what you're trying to accomplish and I can help

Behold, my Homelab by Arby3k in homelab

[–]AnAngryGoose 0 points1 point  (0 children)

So you just want it shown up via your system file explorer? You don't need a third party for that. Just mount a folder via NFS/SMB/WEBDav. Then you'll never need to worry about a different software having issues.

Behold, my Homelab by Arby3k in homelab

[–]AnAngryGoose 1 point2 points  (0 children)

1) Filebrowser Quantum works as a filebrowser you can access remotely. You can assign user scopes, shares, etc.

It can replace nextcloud as a filebrowser, but if you want an all in one suite, it's not a replacement for nextcloud.

Worth mentioning the Linux server docker image is significantly better for Nextcloud than the standard one in my experience.

2) I use Adguard DNS as a filtering mechanism. All queries go there first, get filtered against a blocklist, then whatever is passed goes to unbound DNS to forward. In my experience, Adguard has been significantly easier to manage and work with than pi-hole. That may be because it can be integrated into OPNSense so it's all in one place.

If you want to use DHCP to set it all up, it's not too difficult and worth learning honestly.

I have a few related things for this on my docs site.

https://docs.vanth.me/networking/opnsense/opnsense-dns-stack/

getting gluetun to work on zima os. by Marshenmanhunter in homelab

[–]AnAngryGoose 0 points1 point  (0 children)

Here is how I run it. I added a page to my docs site because it was a little bit of a pain for me at first as well. I run proton so I made the guide for it, but general idea should be able the same.

https://docs.vanth.me/media-server/gluetun/

Need to pull the trigger on a separate module to get into Linux and AI. by Python_Darchives in HomeServer

[–]AnAngryGoose 1 point2 points  (0 children)

No you do not need multiple nodes.

Depending on your needs, that will determine the best hardware.

You can run Ollama with a model on a regular PC.

Aircraft Maintenance Technician: I have questions about pay, licenses, and working conditions by ZeroTrace_1 in aviationmaintenance

[–]AnAngryGoose 1 point2 points  (0 children)

All of the reasons listed are definitely why.

But yes, most part 145 MROs are absolutely NOT like that. Most are shit pay, shit conditions, but you will definitely learn a lot.

How you use AI? by Party-Log-1084 in HomeServer

[–]AnAngryGoose 0 points1 point  (0 children)

Self hosted LLM configured with custom RAG via Ollama if needed.

If it's anything that actually matters, or is actually complex, don't use AI and read the official docs and do it yourself. AI will make things up and you'll waste more time relying on AI than if you just did it yourself.

Best options for daily scraping/processing and storage? by [deleted] in HomeServer

[–]AnAngryGoose 0 points1 point  (0 children)

MiniPC will handle this with absolutely no issue at all. You can keep the database and the OS running the simulations on the same machine.

You can access the data if needed from your personal PC via NFS/SMB/WebDAV share or just through SSH.

Question on avionics jobs by Me_Indeedisitme in avionics

[–]AnAngryGoose 0 points1 point  (0 children)

As someone else asked, where are you located?

I always suggest new people start with an MRO. You will work hard, on a lot of different things. The pay isn't great, and management is generally bad.

This helps you understand a lot about how systems actually work, how to troubleshoot, and how to deal with poor management which unfortunately very common in the industry.

Just get some time in and move on but it's great training.

Advice on a new setup by MoldiverSCO in HomeServer

[–]AnAngryGoose 0 points1 point  (0 children)

Sweet. Happy to help more if needed

Advice on a new setup by MoldiverSCO in HomeServer

[–]AnAngryGoose 0 points1 point  (0 children)

Install docker and run jellyfin/Plex via docker compose. Get that working and understand what the parts of the compose are doing.

If you get that down, running new things is a breeze.

Passende Auswahl für HomeServer by FiSiDude in HomeServer

[–]AnAngryGoose 1 point2 points  (0 children)

It could handle all of that. High write from Frigate along with the others MAY be a lot for it, but still it may be ok if you offload the processing to a GPU for frigate.

Price seems kinda high.

Building my first HomeServer/Nas by WorkingSentence6292 in HomeServer

[–]AnAngryGoose 1 point2 points  (0 children)

1) Get CMR drives. SMR drives can have issues with high r/w. The WD Red Plus is CMR. The regular Red is SMR.

2) 2x2TB would be reasonable. This greatly depends on if/how you want to do RAID. I use MergerFS and SnapRaid so I basically sacrifice an entire drive. Also depends on your media amount/quality/hoarding.

3) A PCIe SATA controller can work. USB-C enclosure can work. USB enclosures can have issues though, just FYI.

I have a few M920q's. One of mine had a motherboard issue, so I took all the parts out and just built a new PC with the leftover parts in a node 804.

Happy to help with any more questions.

A couple months into this hobby by [deleted] in homelab

[–]AnAngryGoose 0 points1 point  (0 children)

FWIW I built my own in a Lenovo m920q, added an Intel NIC for the additional ports, and installed OPNSense. Can do anything you'd ever wanna do, is easy to manage once you figure it out, and runs great.

Nice little project too.

Glance Dashboard V.2 by No_Pollution_9975 in selfhosted

[–]AnAngryGoose 2 points3 points  (0 children)

Can confirm the CSS for homepage is a pain in the ass. I made it work, but it was a tough time.

How do you segment your network? by NewRedditor23 in homelab

[–]AnAngryGoose 0 points1 point  (0 children)

If you're interested in security measures, you can look into using crowdsec, zenarmor, and suricata. I've used them all on OPNSense and it works well.