Skip to content

Commit 1e88427

Browse files
committed
Add traefik:pull and traefik:logs command
1 parent d962af3 commit 1e88427

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
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

0 commit comments

Comments
 (0)