Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions scripts/itkdev-docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function self_update {
git checkout "$branch"
git pull

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

echo
echo "Latest changes:"
Expand Down Expand Up @@ -264,16 +264,22 @@ Commands:
Update template installed in project.

traefik:start
Start træfik reverse proxy.
Start traefik reverse proxy.

traefik:stop
Stop træfik reverse proxy
Stop traefik reverse proxy

traefik:url
URL for the administrative UI for træfik.
URL for the administrative UI for traefik.

traefik:open
Open the administrative UI for træfik.
Open the administrative UI for traefik.

traefik:logs
See traefik logs

traefik:pull
Pull latest traefik & socket-proxy containers

mail:url
URL for the test mail web interface.
Expand Down Expand Up @@ -474,6 +480,12 @@ if [[ "$#" -gt "0" && "$1" == "traefik:stop" ]]; then
exit
fi

# Allow traefik:pull without existence of .env
if [[ "$#" -gt "0" && "$1" == "traefik:pull" ]]; then
$(cd ${script_dir}/../traefik/; docker compose pull)
exit
fi

# Allow dory:start without existence of .env
if [[ "$#" -gt "0" && "$1" == "dory:start" ]]; then
if [ "$(docker inspect -f '{{.State.Running}}' traefik 2>/dev/null)" == "true" ]; then
Expand Down Expand Up @@ -728,6 +740,11 @@ EOF
echo http://${url}:8080;
;;

traefik:logs)
echo "docker logs --tail 20 traefik"
docker logs --tail 20 traefik
;;

mail:url)
url="http://${COMPOSE_DOMAIN}:$(docker_compose port mail 8025 | cut -d: -f2)"
echo $url
Expand Down
4 changes: 2 additions & 2 deletions traefik/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ api:
disableDashboardAd: true

entryPoints:
http:
web:
address: ":80"
https:
websecure:
address: ":443"
http:
tls: {}
Expand Down