reorganize folders
This commit is contained in:
0
docker-compose/traefik/README.md
Normal file
0
docker-compose/traefik/README.md
Normal file
151
docker-compose/traefik/config/example.traefik.yml
Normal file
151
docker-compose/traefik/config/example.traefik.yml
Normal file
@@ -0,0 +1,151 @@
|
|||||||
|
################################################################
|
||||||
|
#
|
||||||
|
# Configuration sample for Traefik v2.
|
||||||
|
#
|
||||||
|
# For Traefik v1: https://github.com/traefik/traefik/blob/v1.7/traefik.sample.toml
|
||||||
|
#
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Global configuration
|
||||||
|
################################################################
|
||||||
|
global:
|
||||||
|
checkNewVersion: true
|
||||||
|
sendAnonymousUsage: true
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# EntryPoints configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
# EntryPoints definition
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
#
|
||||||
|
entryPoints:
|
||||||
|
web:
|
||||||
|
address: :80
|
||||||
|
|
||||||
|
websecure:
|
||||||
|
address: :443
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Traefik logs configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
# Traefik logs
|
||||||
|
# Enabled by default and log to stdout
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
#
|
||||||
|
#log:
|
||||||
|
# Log level
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: "ERROR"
|
||||||
|
#
|
||||||
|
# level: DEBUG
|
||||||
|
|
||||||
|
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
||||||
|
# Intermediate directories are created if necessary.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: os.Stdout
|
||||||
|
#
|
||||||
|
# filePath: log/traefik.log
|
||||||
|
|
||||||
|
# Format is either "json" or "common".
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: "common"
|
||||||
|
#
|
||||||
|
# format: json
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Access logs configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
# Enable access logs
|
||||||
|
# By default it will write to stdout and produce logs in the textual
|
||||||
|
# Common Log Format (CLF), extended with additional fields.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
#
|
||||||
|
#accessLog:
|
||||||
|
# Sets the file path for the access log. If not specified, stdout will be used.
|
||||||
|
# Intermediate directories are created if necessary.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: os.Stdout
|
||||||
|
#
|
||||||
|
# filePath: /path/to/log/log.txt
|
||||||
|
|
||||||
|
# Format is either "json" or "common".
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: "common"
|
||||||
|
#
|
||||||
|
# format: json
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# API and dashboard configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
# Enable API and dashboard
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
#
|
||||||
|
#api:
|
||||||
|
# Enable the API in insecure mode
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: false
|
||||||
|
#
|
||||||
|
# insecure: true
|
||||||
|
|
||||||
|
# Enabled Dashboard
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: true
|
||||||
|
#
|
||||||
|
# dashboard: false
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Ping configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
# Enable ping
|
||||||
|
#ping:
|
||||||
|
# Name of the related entry point
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: "traefik"
|
||||||
|
#
|
||||||
|
# entryPoint: traefik
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Docker configuration backend
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
#providers:
|
||||||
|
# Enable Docker configuration backend
|
||||||
|
# docker:
|
||||||
|
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
|
||||||
|
#
|
||||||
|
# Required
|
||||||
|
# Default: "unix:///var/run/docker.sock"
|
||||||
|
#
|
||||||
|
# endpoint: tcp://10.10.10.10:2375
|
||||||
|
|
||||||
|
# Default host rule.
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: "Host(`{{ normalize .Name }}`)"
|
||||||
|
#
|
||||||
|
# defaultRule: Host(`{{ normalize .Name }}.docker.localhost`)
|
||||||
|
|
||||||
|
# Expose containers by default in traefik
|
||||||
|
#
|
||||||
|
# Optional
|
||||||
|
# Default: true
|
||||||
|
#
|
||||||
|
# exposedByDefault: false
|
||||||
73
docker-compose/traefik/config/traefik.yml
Normal file
73
docker-compose/traefik/config/traefik.yml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
global:
|
||||||
|
checkNewVersion: true
|
||||||
|
sendAnonymousUsage: false # true by default
|
||||||
|
|
||||||
|
# (Optional) Log information
|
||||||
|
# ---
|
||||||
|
# log:
|
||||||
|
# level: ERROR # DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||||
|
# format: common # common, json, logfmt
|
||||||
|
# filePath: /var/log/traefik/traefik.log
|
||||||
|
|
||||||
|
# (Optional) Accesslog
|
||||||
|
# ---
|
||||||
|
# accesslog:
|
||||||
|
# format: common # common, json, logfmt
|
||||||
|
# filePath: /var/log/traefik/access.log
|
||||||
|
|
||||||
|
# (Optional) Enable API and Dashboard
|
||||||
|
# ---
|
||||||
|
# api:
|
||||||
|
# dashboard:
|
||||||
|
# enabled: true
|
||||||
|
# insecure: true # Don't do this in production!
|
||||||
|
|
||||||
|
# Entry Points configuration
|
||||||
|
# ---
|
||||||
|
entryPoints:
|
||||||
|
web:
|
||||||
|
address: :80
|
||||||
|
# (Optional) Redirect to HTTPS
|
||||||
|
# ---
|
||||||
|
# http:
|
||||||
|
# redirectons:
|
||||||
|
# entryPoint:
|
||||||
|
# to: websecure
|
||||||
|
# scheme: https
|
||||||
|
|
||||||
|
websecure:
|
||||||
|
address: :443
|
||||||
|
|
||||||
|
# Certificates configuration
|
||||||
|
# ---
|
||||||
|
# TODO: Custmoize your Cert Resolvers and Domain settings
|
||||||
|
#
|
||||||
|
certificatesResolvers:
|
||||||
|
# LET'S ENCRYPT:
|
||||||
|
# ---
|
||||||
|
#
|
||||||
|
staging:
|
||||||
|
acme:
|
||||||
|
email: your-email@example.com # TODO: Change this to your email
|
||||||
|
storage: /ssl-certs/acme.json
|
||||||
|
caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
|
httpChallenge:
|
||||||
|
entryPoint: web
|
||||||
|
production:
|
||||||
|
acme:
|
||||||
|
email: your-email@example.com # TODO: Change this to your email
|
||||||
|
storage: /ssl-certs/acme.json
|
||||||
|
caServer: "https://acme-v02.api.letsencrypt.org/directory"
|
||||||
|
httpChallenge:
|
||||||
|
entryPoint: web
|
||||||
|
|
||||||
|
# Provider Configuration
|
||||||
|
# ---
|
||||||
|
# TODO: Customize your Provider Settings if needed
|
||||||
|
#
|
||||||
|
providers:
|
||||||
|
# DOCKER:
|
||||||
|
# ---
|
||||||
|
#
|
||||||
|
docker:
|
||||||
|
exposedByDefault: false # Default is true
|
||||||
19
docker-compose/traefik/docker-compose.yml
Normal file
19
docker-compose/traefik/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
traefik-ssl-certs:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
services:
|
||||||
|
traefik:
|
||||||
|
image: "traefik:v2.5"
|
||||||
|
container_name: "traefik"
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
# (Optional) Expose Dashboard
|
||||||
|
- "8080:8080" # Don't do this in production!
|
||||||
|
volumes:
|
||||||
|
- /etc/traefik:/etc/traefik
|
||||||
|
- traefik-ssl-certs:/ssl-certs
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
Reference in New Issue
Block a user