DEV Community

Thomas Hansen
Thomas Hansen

Posted on

Create your Own Private DIY Silicon Valley

It's not exactly a secret that Facebook, Google, Reddit, and others are censoring you and spying on you I presume. Personally, I've got an entire army at Reddit so passionately hating me, they've subscribed to my YouTube videos for 6 years, with the sole purpose of down voting my videos. And of course, anything I post over there, is censored in seconds ...

I got so tired of this, I figured somebody just have to solve it. Since the nature of the web is that who ever owns the box, gets to decide what gets published - I created my own box!

My web server

The above MacMini is running out of my living room. You can visit it at home.ainiro.io. I have even created a dummy little app (30 minutes job) that I deployed on to it. You can find my app below.

HOWTO

The process is dead simple.

  1. Get a MacMini
  2. Install Docker on it
  3. Use docker compose up in the same folder you've got the file below saved as "docker-compose.yaml"
  4. Paste the docker compose file below into ChatGPT and tell it to expose both sites using Cloudflare tunnels

The docker compose file can be found here ...

version: "3.8"

services:
  backend:
    image: servergardens/magic-backend:latest
    platform: linux/amd64
    container_name: magic_backend
    restart: unless-stopped

    ports:
      - "4444:4444"

    volumes:
      - magic_files_etc:/magic/files/etc
      - magic_files_data:/magic/files/data
      - magic_files_config:/magic/files/config
      - magic_files_modules:/magic/files/modules

  frontend:
    image: servergardens/magic-frontend:latest
    container_name: magic_frontend
    restart: unless-stopped

    depends_on:
      - backend

    ports:
      - "5555:80"

volumes:
  magic_files_etc:
  magic_files_data:
  magic_files_config:
  magic_files_modules:
Enter fullscreen mode Exit fullscreen mode

All in all, the process took me 30 minutes, after which I had a fully functioning (and secure) web server, serving my own apps, out of my own living room. Get the source to Magic below, or read more about it on my website.

Top comments (0)