Skip to content

Commit

Permalink
Adding wetty with Traefik for reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
JDeBo committed Jan 12, 2025
1 parent 7b3820c commit 110e626
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/setup-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
rm get-docker.sh

IP=$(hostname -I | awk '{print $1}')

echo "$IP"
#docker run --rm -d -p 3000:3000 wettyoss/wetty --ssh-host=$IP --title "DevUp Demo" --ssh-port=2332
33 changes: 33 additions & 0 deletions scripts/wetty.docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Sample docker compose file to demonstrate the usage of wetty behind a reverse
# proxy, optionally with Let's Encrypt based SSL certificate
#
# For SSL support, uncomment the commented lines. Consult traefik documentation
# for features like automatic forward from HTTP to HTTPS etc.

services:
wetty:
image: wettyoss/wetty
command:
- --base=/
- --ssh-host=team-1.codemash.sbx.justindebo.com
labels:
- "traefik.enable=true"
- "traefik.http.routers.wetty.rule=Host(`team-1.codemash.sbx.justindebo.com`)"
- "traefik.http.routers.wetty.tls.certResolver=default"
- "traefik.http.routers.wetty.tls=true"

reverse-proxy:
image: traefik
command:
- --providers.docker
- --entryPoints.web.address=:80
- --entryPoints.websecure.address=:443
- --certificatesResolvers.default.acme.email=justin.debo@gmail.com
- --certificatesResolvers.default.acme.storage=acme.json
- --certificatesResolvers.default.acme.httpChallenge.entryPoint=web
ports:
- "80:80"
- "443:443"

volumes:
- /var/run/docker.sock:/var/run/docker.sock

0 comments on commit 110e626

Please sign in to comment.