Skip to content

Commit 78292a3

Browse files
authored
Merge pull request #123 from itk-dev/feature/rename_traefik_entrypoints
Feature/rename traefik entrypoints
2 parents 89a78c6 + 1e88427 commit 78292a3

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

scripts/itkdev-docker-compose

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function self_update {
4141
git checkout "$branch"
4242
git pull
4343

44-
echo "${bold}Done.${normal}"
44+
echo "${bold}Done. Please run traefik:pull to ensure you have the latest containers.${normal}"
4545

4646
echo
4747
echo "Latest changes:"
@@ -264,16 +264,22 @@ Commands:
264264
Update template installed in project.
265265
266266
traefik:start
267-
Start træfik reverse proxy.
267+
Start traefik reverse proxy.
268268
269269
traefik:stop
270-
Stop træfik reverse proxy
270+
Stop traefik reverse proxy
271271
272272
traefik:url
273-
URL for the administrative UI for træfik.
273+
URL for the administrative UI for traefik.
274274
275275
traefik:open
276-
Open the administrative UI for træfik.
276+
Open the administrative UI for traefik.
277+
278+
traefik:logs
279+
See traefik logs
280+
281+
traefik:pull
282+
Pull latest traefik & socket-proxy containers
277283
278284
mail:url
279285
URL for the test mail web interface.
@@ -474,6 +480,12 @@ if [[ "$#" -gt "0" && "$1" == "traefik:stop" ]]; then
474480
exit
475481
fi
476482

483+
# Allow traefik:pull without existence of .env
484+
if [[ "$#" -gt "0" && "$1" == "traefik:pull" ]]; then
485+
$(cd ${script_dir}/../traefik/; docker compose pull)
486+
exit
487+
fi
488+
477489
# Allow dory:start without existence of .env
478490
if [[ "$#" -gt "0" && "$1" == "dory:start" ]]; then
479491
if [ "$(docker inspect -f '{{.State.Running}}' traefik 2>/dev/null)" == "true" ]; then
@@ -728,6 +740,11 @@ EOF
728740
echo http://${url}:8080;
729741
;;
730742

743+
traefik:logs)
744+
echo "docker logs --tail 20 traefik"
745+
docker logs --tail 20 traefik
746+
;;
747+
731748
mail:url)
732749
url="http://${COMPOSE_DOMAIN}:$(docker_compose port mail 8025 | cut -d: -f2)"
733750
echo $url

traefik/traefik.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ api:
55
disableDashboardAd: true
66

77
entryPoints:
8-
http:
8+
web:
99
address: ":80"
10-
https:
10+
websecure:
1111
address: ":443"
1212
http:
1313
tls: {}

0 commit comments

Comments
 (0)