forked from btcpayserver/btcpayserver-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded and refactored Traefik (btcpayserver#585)
- Loading branch information
Showing
15 changed files
with
80 additions
and
83 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
*.yml | ||
nginx.tmpl | ||
*.toml | ||
*.json | ||
pull-images.sh | ||
pull-images.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
# How to use docker-compose with Traefik | ||
|
||
Traefik is a modern reverse proxy aimed towards applications running through container orchestrators. | ||
Traefik is a modern reverse proxy aimed towards applications running through container orchestrators. | ||
|
||
Some of the benefits of using Traefik over NGinx are: | ||
* Real-time configuration changes - no need to reload the proxy | ||
* Auto discovery and configuration of services through a vast amount of container orchestrators. | ||
* Built-in official support for Let's Encrypt SSL with certificate auto-renewal | ||
|
||
## Traefik Specific Environment Variables | ||
- Real-time configuration changes - no need to reload the proxy | ||
- Auto discovery and configuration of services through a vast amount of container orchestrators. | ||
- Built-in official support for Let's Encrypt SSL with certificate auto-renewal | ||
- Supports path-based routing without need to [hard-code it in global config](../Production/nginx.tmpl). | ||
|
||
* `BTCPAYGEN_REVERSEPROXY` to `traefik`. | ||
* `LETSENCRYPT_EMAIL`: Optional, The email Let's Encrypt will use to notify you about certificate expiration. | ||
* `BTCPAYGEN_ADDITIONAL_FRAGMENTS`: In the case that you have an already deployed traefik container, you can use the fragment `traefik-labels` which will tag the btcpayserver service with the needed labels to be discovered. | ||
## Traefik Specific Environment Variables | ||
|
||
- `BTCPAYGEN_REVERSEPROXY` to `traefik`. | ||
- `LETSENCRYPT_EMAIL`: Optional, The email Let's Encrypt will use to notify you about certificate expiration. | ||
- `BTCPAYGEN_ADDITIONAL_FRAGMENTS`: Add `traefik` | ||
- `BTCPAY_ADDITIONAL_HOSTS`: Traefic can not accept list of hosts. Add additional hosts in a new file named e.g. `btcpayserver-traefic.custom.yml`: | ||
``` | ||
version: "3" | ||
services: | ||
btcpayserver: | ||
labels: | ||
traefik.http.routers.btcpayserver2.rule: Host(`additional.example.com`) | ||
traefik.http.routers.btcpayserver3.rule: Host(`another-additional.example.com`) | ||
``` | ||
|
||
 | ||
 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
entryPoints: | ||
http: | ||
address: :80 | ||
http: | ||
redirections: | ||
entrypoint: | ||
to: https | ||
scheme: https | ||
https: | ||
address: :443 | ||
http: | ||
tls: | ||
certResolver: default | ||
|
||
providers: | ||
docker: | ||
exposedByDefault: false | ||
watch: true | ||
endpoint: unix:///var/run/docker.sock | ||
|
||
# Enable only for debug | ||
#api: | ||
# insecure: true | ||
# dashboard: true | ||
|
||
log: | ||
level: ERROR # or DEBUG, PANIC, FATAL, WARN, and INFO | ||
|
||
certificatesResolvers: | ||
default: | ||
acme: | ||
storage: /data/acme.json | ||
httpChallenge: | ||
entryPoint: http |
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
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
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
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
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
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
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
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
12 changes: 0 additions & 12 deletions
12
docker-compose-generator/docker-fragments/traefik-labels.yml
This file was deleted.
Oops, something went wrong.
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