Docker

From wiki.N4VX.net
Jump to navigation Jump to search

So how did I gin up a wiki page? I cheated.

I knew that I wanted a few different resources and didn't want to spin up a separate cloud node for each project. I could spend 32 weeks studying reverse proxies and goof my way thru it but ain't nobody got time for that. I paid a guy on fiverr about $75 to use docker to set up a Traefik reverse proxy container, a MySQL container and managing adminer container, and a wiki and wordpress container as working examples.

Below is a brief journey of how it all progressed and some sample config files to maybe get you started.

Traefik reverse proxy

A visual example of how Traefik Proxy works
  • Wat it do? Layman explanation: This allows one "server" to masquerade as wiki.domain.tld, blog.domain.tld, podcast.domain.tld, etc. and pass the traffic to the corresponding virtual server running in the background. You can roll your own with nginx but I don't feel like learning all that and this spins up in a docker container, configures itself and IT PULLS VALID CERTS FOR Y0UR SUBDOMAINS!!! Winning!!
    • From their website:
      • Traefik is a leading modern reverse proxy and load balancer that makes deploying microservices easy. Traefik integrates with your existing infrastructure components and configures itself automatically and dynamically.
      • Traefik is designed to be as simple as possible to operate, but capable of handling large, highly-complex deployments across a wide range of environments and protocols in public, private, and hybrid clouds. It also comes with a powerful set of middlewares that enhance its capabilities to include load balancing, API gateway, orchestrator ingress, as well as east-west service communication and more.
      • Run Traefik and let it do the work for you!


  • How to set it up:
    • DNS settings: You need at a minimum to have your domain.tld and traefik.domain.tld to have valid A Records. CNAME may work but I used A Records.
    • Save this file: Traefik - docker-compose.yml in the folder you wish to use for your Traefik container. In your favorite text editor (nano,vim,notepad) edit the file to reflect your domain.tld and save the file.
    • In the folder with this file, run the following command docker-compose up -d This will take a few minutes and do its thing.
    • After a while you can verify that it is running by executing docker ps -a


  • Config stuff?? I don't remember setting anything up after the initial docker install. Should I harden it? Any Traefik experts care to chime in?

MySQL and Adminer

  • Wat it do
  • docker-compose.yml file
  • config stuff??

mediawiki 1.35

  • Wat it do
  • docker-compose.yml
  • config stuff
  • extensions for fun and opsec

LAMP stack

  • you get a LAMP stack and you get a LAMP stack, evrybody on Oprah getting a LAMP stack!!!!
  • This is for Apache/PHP7.3 - File:LAMP docker-compose.yml.txt
  • config stuff
  • bootstrap templates
  • config stuff

IRC Web Client

Access your favorite IRC channels from anywhere!!

PodcastGenerator!!

Cause who doesn't need a RSS feed of their own

  • Wat it do
  • docker-compose.yml
  • config stuff

CGNAT is Satan's Seed

This is how you fix it. It's 2021. Either you give me a real publicly routable IPV4 or kick me square in the nutsack and a publicly routable IPV6. Don't shove a broomstick up my wastegate and CGNAT me bro.