Skip to content

Instantly share code, notes, and snippets.

View abenevaut's full-sized avatar
💬
BiBop! I'm EngelBit!

Antoine B. abenevaut

💬
BiBop! I'm EngelBit!
View GitHub Profile
version: '3' # Specify the Docker Compose version
services:
adguardhome: # Define the service named 'adguardhome'
image: adguard/adguardhome # Use the 'adguard/adguardhome' Docker image
container_name: adguardhome # Set the container name to 'adguardhome'
restart: unless-stopped # Restart the container automatically unless stopped manually
ports: # Map container ports to host ports
# Expose port 53 on TCP and UDP for DNS queries
- "53:53/tcp"
@abenevaut
abenevaut / self-signed-certificate-with-custom-ca.md
Last active February 11, 2025 19:07 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

docker run --rm -it -w /app -v .:/app alpine/openssl genrsa -des3 -out rootCA.key 4096