Skip to content

Commit

Permalink
Merge pull request #63 from ho-nl/JeroenVanLeusden-patch-1
Browse files Browse the repository at this point in the history
feat: Add ngrok container
  • Loading branch information
Jeroen authored Mar 26, 2021
2 parents dcb68f7 + b7a2156 commit a84cfc3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,19 @@ bin/magento setup:config:set --amqp-host=localhost --amqp-port=5672 --amqp-user=
http://localhost:15672
```

### How do I set up Ngrok?
Ngrok exposes local servers to the public internet over secure tunnels.

```
http://localhost:4551
Update base urls with tunnel url shown on webpage.
```

By default an unregistered session is started, this will limit the connections per minute. Adding your authtoken using environment parameters will grant you access to more features and longer session times.
```
- PARAMS=http -region=eu --authtoken=<token> nginx:80
```

### How do I set up Sphinx?

No support yet.
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ services:
FPM_ROOT: $PWD/pub
command: /bin/sh -c "envsubst '$$FPM_PORT $$FPM_XDEBUG $$FPM_ROOT $$FPM_ROOT_ABS' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"

# http://localhost:4551/
# Adding your authtoken will grant you access to more features and longer session times.
ngrok:
image: shkoliar/ngrok:latest
ports:
- 4551:4551
links:
- nginx
environment:
- PARAMS=http -region=eu nginx:80
# - PARAMS=http -region=eu --authtoken=<token> nginx:80

mysql:
image: percona:8.0
ports:
Expand Down

0 comments on commit a84cfc3

Please sign in to comment.