The `http` declaration doesn't go in the main config file
This commit is contained in:
parent
e99e37f74e
commit
e09eddadc5
|
@ -11,8 +11,7 @@ services:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./traefik.yml:/etc/traefik/traefik.yaml:ro
|
- ./traefik:/etc/traefik
|
||||||
- ./http_auth:/http_auth
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
# HTTP to HTTPS redirection
|
# HTTP to HTTPS redirection
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
common-auth:
|
||||||
|
basicAuth:
|
||||||
|
usersFile: "http_auth"
|
|
@ -6,6 +6,8 @@ providers:
|
||||||
endpoint: "unix:///var/run/docker.sock"
|
endpoint: "unix:///var/run/docker.sock"
|
||||||
network: "traefik-network"
|
network: "traefik-network"
|
||||||
exposedByDefault: false # Only expose explicitly enabled containers
|
exposedByDefault: false # Only expose explicitly enabled containers
|
||||||
|
file:
|
||||||
|
filename: /etc/traefik/file-provider.yml
|
||||||
|
|
||||||
entryPoints:
|
entryPoints:
|
||||||
insecure:
|
insecure:
|
||||||
|
@ -20,9 +22,3 @@ certificatesResolvers:
|
||||||
httpChallenge:
|
httpChallenge:
|
||||||
# used during the challenge
|
# used during the challenge
|
||||||
entryPoint: insecure
|
entryPoint: insecure
|
||||||
|
|
||||||
http:
|
|
||||||
middlewares:
|
|
||||||
common-auth:
|
|
||||||
basicAuth:
|
|
||||||
usersFile: "/http_auth"
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Create/update http_auth file according to values in .env file
|
# Create/update http_auth file according to values in .env file
|
||||||
source .env
|
source .env
|
||||||
echo "${HTTP_USER}:${HTTP_PASSWORD}" > http_auth
|
echo "${HTTP_USER}:${HTTP_PASSWORD}" > traefik/http_auth
|
||||||
docker network create traefik-network || true
|
docker network create traefik-network || true
|
||||||
|
|
||||||
echo "[$0] ***** Pulling all images... *****"
|
echo "[$0] ***** Pulling all images... *****"
|
||||||
|
|
Loading…
Reference in New Issue