mirror of
https://codeberg.org/MarkusThielker/finances.git
synced 2025-04-12 05:08:43 +00:00
N-FIN-45: add example traefik setup
This commit is contained in:
parent
f36a44aacd
commit
0807c1cbc7
2 changed files with 26 additions and 0 deletions
13
docker/finances-prod/traefik.toml
Normal file
13
docker/finances-prod/traefik.toml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[entryPoints]
|
||||||
|
[entryPoints.web]
|
||||||
|
address = ":80"
|
||||||
|
# [entryPoints.web.http.redirections.entryPoint]
|
||||||
|
# to = "websecure"
|
||||||
|
# scheme = "https"
|
||||||
|
|
||||||
|
[entryPoints.websecure]
|
||||||
|
address = ":443"
|
||||||
|
|
||||||
|
[providers.docker]
|
||||||
|
watch = true
|
||||||
|
network = "web"
|
13
docker/finances-prod/traefik_setup.sh
Normal file
13
docker/finances-prod/traefik_setup.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
#
|
||||||
|
# run this container on your server to use traefik as a reverse proxy
|
||||||
|
#
|
||||||
|
docker run -d \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
-v $PWD/traefik.toml:/traefik.toml \
|
||||||
|
-p 80:80 \
|
||||||
|
-p 443:443 \
|
||||||
|
--restart unless-stopped \
|
||||||
|
--network web \
|
||||||
|
--name traefik \
|
||||||
|
traefik:v2.10
|
Loading…
Add table
Reference in a new issue