-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56fa5d3
commit c62d052
Showing
2 changed files
with
41 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,37 @@ | ||
# Service: Tunnel | ||
|
||
- Image: https://hub.docker.com/r/ellioseven/de-tunnel/ | ||
- Source: https://github.com/ellioseven/de-tunnel | ||
|
||
This image is based off [localtunnel](https://localtunnel.github.io/www/) | ||
|
||
## Configuring a Tunnel | ||
|
||
Tunnels should be managed in project root `docker-compose.override.yml`. To | ||
configure a tunnel, specify the following: | ||
|
||
``` | ||
version: "2" | ||
services: | ||
tunnel: | ||
extends: | ||
file: ./services/tunnel/docker-compose.yml | ||
service: tunnel | ||
depends_on: | ||
- <service> | ||
environment: | ||
- LT_HOST=<service> | ||
- LT_PORT=<port> | ||
- LT_SUBDOMAIN=<subdomain> | ||
``` | ||
|
||
Running `make up` will create the tunnel. You can view the tunnel status with | ||
`docker-compose logs <tunnel-service>` | ||
|
||
The tunnel should now be viewable at `<subdomain>.localtunnel.me` | ||
|
||
### Replacements: | ||
|
||
- `<service>` Service ID, eg: `apache` | ||
- `<port>` Service port, eg: `80` | ||
- `<subdomain>` Subdomain to be created, eg: `de-apache` |
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,4 @@ | ||
version: "2" | ||
services: | ||
tunnel: | ||
image: ellioseven/de-tunnel |