feat: Prepare Traefik for https.
This commit is contained in:
parent
b2a564b770
commit
c60986ed98
1
traefik/.gitignore
vendored
Normal file
1
traefik/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
traefik.yml
|
||||
11
traefik/README.md
Normal file
11
traefik/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Monitoring
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
docker network create web
|
||||
touch acme.json
|
||||
chmod 600 acme.json
|
||||
cp traefik.example.yml traefik.yml # then edit
|
||||
docker compose up -d
|
||||
```
|
||||
@ -16,4 +16,5 @@ services:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- './traefik.yml:/etc/traefik/traefik.yml'
|
||||
- './acme.json:/acme.json'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
||||
|
||||
@ -13,3 +13,11 @@ providers:
|
||||
network: 'web'
|
||||
endpoint: 'unix:///var/run/docker.sock'
|
||||
exposedByDefault: false
|
||||
|
||||
certificatesResolvers:
|
||||
letsencrypt:
|
||||
acme:
|
||||
email: 'admin@example.org'
|
||||
storage: 'acme.json'
|
||||
httpChallenge:
|
||||
entryPoint: 'http'
|
||||
Loading…
x
Reference in New Issue
Block a user