Skip to content

Commit

Permalink
Now services are not open to the whole Internet.
Browse files Browse the repository at this point in the history
  • Loading branch information
payne committed Jul 20, 2023
1 parent 50b6499 commit a265c36
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker-compose.yml
Expand Up @@ -2,6 +2,11 @@ version: '3.8'
services:
redis-stack:
image: redis/redis-stack:latest
# https://stackoverflow.com/questions/45109398/how-can-i-make-docker-compose-bind-the-containers-only-on-defined-network-instea
# This techinque makes it so http://R.MattPayne.org:8001 fails on the Internet
# But after `ssh R.MattPayne.org -L 8001:127.0.0.1:8001`
# http://127.0.0.1:8001/ works great :-)
ports:
- 6379:6379
- 8001:8001
- "127.0.0.1:6379:6379"
- "127.0.0.1:8001:8001"

0 comments on commit a265c36

Please sign in to comment.