feat: Prepare Traefik for https.

This commit is contained in:
William 2022-12-30 09:18:57 +01:00
parent b2a564b770
commit c60986ed98
4 changed files with 22 additions and 1 deletions

1
traefik/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
traefik.yml

11
traefik/README.md Normal file
View 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
```

View File

@ -15,5 +15,6 @@ services:
- "443:443" - "443:443"
- "8080:8080" - "8080:8080"
volumes: volumes:
- './traefik.yml:/etc/traefik/traefik.yml' - './traefik.yml:/etc/traefik/traefik.yml'
- './acme.json:/acme.json'
- '/var/run/docker.sock:/var/run/docker.sock:ro' - '/var/run/docker.sock:/var/run/docker.sock:ro'

View File

@ -13,3 +13,11 @@ providers:
network: 'web' network: 'web'
endpoint: 'unix:///var/run/docker.sock' endpoint: 'unix:///var/run/docker.sock'
exposedByDefault: false exposedByDefault: false
certificatesResolvers:
letsencrypt:
acme:
email: 'admin@example.org'
storage: 'acme.json'
httpChallenge:
entryPoint: 'http'