Skip to content

Instantly share code, notes, and snippets.

View kazem3d's full-sized avatar
🎯
Focusing

kazem ghanati kazem3d

🎯
Focusing
View GitHub Profile
@kazem3d
kazem3d / gist:f36683688815f1aea1f5db95556f2050
Created July 5, 2023 20:47
nginx and traefik with ssl/tls deployment with docker-compose [pro mode]
# nginx and traefik with ssl/tls deployment with docker-compose [pro mode]
# Generate Treafik password
# echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g
# http -> https redirect is not config and hendeled in dns resolver
version: '3.8'
networks:
traefik-network: # Define the custom network for Traefik and Nginx
@kazem3d
kazem3d / gist:2f777de7977a52ff8c40334f4cd9d51a
Created July 5, 2023 20:45
nginx and traefik with ssl/tls deployment with docker-compose [simple mode]
# nginx and traefik with ssl/tls deployment with docker-compose [simple mode]
# http -> https redirect is not config and hendeled in dns resolver
version: '3.8'
services:
traefik:
image: traefik:v2.4
command:
- "--api.insecure=true" # Enable insecure mode for the Traefik UI
@kazem3d
kazem3d / gist:dcd6795536db203d53c0e39af95ab4c5
Created July 5, 2023 20:44
nginx and traefik deployment with docker-compose [http only]
# nginx and traefik deployment with docker-compose [http only]
version: '3.8'
services:
traefik:
image: traefik
command:
- "--api.insecure=true" # Enable insecure mode for the Traefik UI