This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |