Skip to content

Commit

Permalink
Create tunnel service
Browse files Browse the repository at this point in the history
  • Loading branch information
ellioseven committed May 3, 2018
1 parent 56fa5d3 commit c62d052
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
37 changes: 37 additions & 0 deletions services/tunnel/README.md
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`
4 changes: 4 additions & 0 deletions services/tunnel/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: "2"
services:
tunnel:
image: ellioseven/de-tunnel

0 comments on commit c62d052

Please sign in to comment.