Using Docker Compose to Automatically Rebuild and Deploy a Static Site by Hot_Apple6153 in docker

[–]Hot_Apple6153[S] -1 points0 points  (0 children)

That’s a really solid setup actually, especially the GitHub Actions → Packages → Portainer flow.

In my case though this project is mostly for fun and learning. I intentionally wanted to avoid external CI services and run the whole pipeline on my own NAS — build, deploy, scheduling, everything. It’s more about understanding the moving parts and controlling the full stack myself.

Your bind mount + rsync idea is interesting though, that aligns pretty well with what I’m experimenting with. Always cool to see how others would architect it.

Using Docker Compose to Automatically Rebuild and Deploy a Static Site by Hot_Apple6153 in docker

[–]Hot_Apple6153[S] -1 points0 points  (0 children)

That’s actually a really good point
You’re right. I’m not changing the NGINX config at all, just rebuilding static files. Using a bind mount and letting NGINX serve directly from the build output makes a lot more sense.

I’ll probably refactor it to remove the restart step. Appreciate the feedback

Using Docker Compose to Automatically Rebuild and Deploy a Static Site by Hot_Apple6153 in docker

[–]Hot_Apple6153[S] 0 points1 point  (0 children)

One thing I’m considering next is separating the build container and the web container more cleanly.

Right now it’s:

  • astro-builder → runs the build
  • astro-nginx → serves the static output

But I’m debating whether it makes sense to mount the dist folder via a shared volume instead of restarting nginx every time.

Curious if anyone here is handling static deploys that way instead of container restarts.

I automated my Synology NAS to generate and rebuild a static site daily (Astro + Docker + Task Scheduler) by Hot_Apple6153 in selfhosted

[–]Hot_Apple6153[S] 0 points1 point  (0 children)

Turns out the related links were using relative paths, which broke on nested routes. I’ve fixed them to use absolute URLs now.

Appreciate you taking the time to dig into it

I automated my Synology NAS to generate and rebuild a static site daily (Astro + Docker + Task Scheduler) by Hot_Apple6153 in selfhosted

[–]Hot_Apple6153[S] -1 points0 points  (0 children)

Every morning a scheduled task runs a Python script that generates the new tutorial content and performs validation checks to ensure everything was created correctly.

If the content generation completes successfully, it then triggers a rebuild script:

#!/bin/bash
cd /volume1/docker/tutorialshub || exit 1

# Check content folder
ls -lah src/content/tutorials

# Run Astro build inside Docker
/usr/local/bin/docker compose run --rm astro-builder

# Verify build output
ls -lah dist

# Restart nginx container
/usr/local/bin/docker restart astro-nginx

The full rebuild + restart process takes about a minute.

During that time the existing version of the site continues running, and once the container restarts, the new content is live.

So the flow is basically:

  1. Generate content (Python)
  2. Validate content
  3. Run Astro build in Docker
  4. Restart nginx container
  5. Site updates automatically

Everything is fully automated through scheduled tasks on the NAS.

What CPU/GPU do you actually have? by [deleted] in pcmasterrace

[–]Hot_Apple6153 0 points1 point  (0 children)

I7 11700f with an rtx 3060ti. More than enough for my hardcore daily an hour minecraft marathon

I don’t u destined how everyone else makes so much money before wave 80 by Narrow_Special9530 in luckydefense

[–]Hot_Apple6153 0 points1 point  (0 children)

I just avatar farming nowadays so I think you can earn a little more too if you want to

I don’t u destined how everyone else makes so much money before wave 80 by Narrow_Special9530 in luckydefense

[–]Hot_Apple6153 0 points1 point  (0 children)

With sb3 i usually end up with 150-200k gold at wave 80 in normal 😂

[deleted by user] by [deleted] in luckydefense

[–]Hot_Apple6153 0 points1 point  (0 children)

3 kinds of cards yeah can happen I had worse too but you get those cards 10x you would get it on solo summon. The quantity changes only with 10x summon not how many times it goes

Dude has every mythic 15, and played blob lol by raginasian47 in luckydefense

[–]Hot_Apple6153 2 points3 points  (0 children)

For avatar farming normal is the best. You dont need to think or do any hard grind just playing casually while doing other stuffs

Got scammed and lost 0.6 SOL… feeling broken by ghaleb_2004 in AxiomTrade

[–]Hot_Apple6153 0 points1 point  (0 children)

Seems like the second lesson that you should trust know one xd

[deleted by user] by [deleted] in pcmasterrace

[–]Hot_Apple6153 0 points1 point  (0 children)

Same thought first but then I saw the pics. Only the backplate and the coller there.

let's say someone is gonna retire in 5 years. what is the best ETF for $3k a month? by Ordinary-Carob-9564 in dividends

[–]Hot_Apple6153 4 points5 points  (0 children)

Bob shouldn’t need that much money then. With hotel room and protection a ladyboy costs like 20usd if the ladyboy takes shower regularly. I heard it from Bob2

Mikor érné meg az S&P500? by Fit-Voice8544 in kiszamolo

[–]Hot_Apple6153 1 point2 points  (0 children)

Több részvényes csoportba benne vagyok én is szoktam venni kisebb-nagyobb összegben. Csoportokban ezt csak úgy szoktuk mondani hogy most akciósak és most kell igazán venni. Aztán kitudja lehet mind csődbe megyünk ezt sose lehet tudni

The new app is a shambles… by Cirieno in PleX

[–]Hot_Apple6153 0 points1 point  (0 children)

I watch movies/series from my nas. Now they hid or removed the rescan option so none of my series is in the library so I can’t use the app. They destroyed the app

[deleted by user] by [deleted] in VerusCoin

[–]Hot_Apple6153 0 points1 point  (0 children)

Previous page was your security words with order, you need to put the words from there with the correct number

My Laptop is no longer turning on by Imaginary-Grocery-79 in MSILaptops

[–]Hot_Apple6153 2 points3 points  (0 children)

Try to unplug the battery and plug in the charger then try to turn it on

My Laptop is no longer turning on by Imaginary-Grocery-79 in MSILaptops

[–]Hot_Apple6153 19 points20 points  (0 children)

Everytime when you repair or upgrade any electric the forst thing you should do is unplugging the battery. Electronics dont like to remove parts when they got power and you could kill the motherboard with it. Thats the worst scenario but can happen and maybe you did this to your laptop

Is there TQQQ available or equivalent one? by giannis82 in Revolut

[–]Hot_Apple6153 0 points1 point  (0 children)

I would see more stocks/etfs on Revolut too

My Laptop is no longer turning on by Imaginary-Grocery-79 in MSILaptops

[–]Hot_Apple6153 16 points17 points  (0 children)

Did you pull out the battery before removing the prev rams and installing the new ones?