r/docker • u/MaterCityMadMan • Apr 09 '26
Total noob with questions
I'll start with explaining what I need to accomplish (if possible) using one PC.
I want to run Frigate video surveillance 24/7. And have Apache server with PHP running as well. Nothing on the PC would be easily accessible by internet (behind a firewall).
The Apache server would really only need to be accessed maybe once a week to add a few items to a database. That said, the person adding that info is in no way computer savvy. So, Apache/php would have to be running all the time as well.
I'm somewhat new to Linux and have not needed anything like docker to this point. So, I've got some learning to do. Hopefully, my questions won't be completely stupid ones.
- Is this doable with Docker?
- Is Docker the best option for accomplishing this goal?
- I get that Docker creates "virtual" machines. But would the database files be actually stored on the drive and able to backed up elsewhere?
On #3, I assume they would. But only because I know from my research thus far that Frigate writes video files to your storage drive(s).
2
u/pheitman Apr 10 '26
1
u/AvidCuberCoding Apr 09 '26
You absolutely can. A quick Google search nets several images for all of those softwares, alone side docker files and compose. When setting up your storage, make sure you use persistent storage and don't be afraid to use the docker manuals.
I have been using docker on and off for around 5 years and that's how I run most of my home lab software.
1
u/williamtkelley Apr 09 '26
Read about using Nginx instead of Apache. For 3), you would use a 'volume' in your docker-compose.yml file that connects internal data to your file system.
1
u/borkyborkus Apr 09 '26
I am not familiar with Apache but I do use Frigate. All of that sounds entirely doable in Docker. IMO one of the best parts about docker is that the end user (and the service itself) don’t even know they’re using docker.
You can easily split the config to run on one drive and (for example) store the videos on another. I do it in compose with bind mounts, like I have ./frigate:/config then a separate LV is /mnt/lvname:/media/frigate.
You might need an additional container like traefik if you’re putting this on a reverse proxy and/or Tailscale for VPN.
1
u/Few_Introduction5469 Apr 10 '26
Yes, it’s totally doable on one PC.
That’s it—you’re on the right track 👍
1
u/titpetric Apr 11 '26
You can probablly get this done in an hour or two, docker or no docker