Skip to content

Instantly share code, notes, and snippets.

View skylarng89's full-sized avatar

Patrick Aziken skylarng89

View GitHub Profile
@skylarng89
skylarng89 / README.md
Last active April 8, 2025 11:59
How to setup a Nginx Proxy Manager and Lets Encrypt on Docker

screenshot_2025-04-06_21-05-25

Here's a guide to setup a Nginx Proxy manager as a docker container. It comes shipped with Let's encrypt for provisioning SSL. Thsi setup will allow you proxy requests to other docker containers automatically and to also issue SSL vertificates from Let's Encrypt without setting up virtual hosts or even installing Certbot manually. You also do not need to install Nginx separately on the host machine for this to work. Below is the basic Docker Compose file for the nginx container:

services:
  nginx-proxy:
    image: jwilder/nginx-proxy:alpine
    container_name: nginxproxy
    environment:
@skylarng89
skylarng89 / docker_commands.sh
Last active February 25, 2023 14:12
Basic docker commands
# Check running docker containers
docker ps
# Check all docker containers including stopped containers
docker ps -a
# List docker images
docker images
docker image ls
@skylarng89
skylarng89 / .gitignore
Created February 4, 2023 23:07
Terraform gitignore template
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
crash.*.log