-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding wetty with Traefik for reverse proxy
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |