Skip to content

Commit

Permalink
Shortened comment and added additional detail
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanderson3 committed Oct 28, 2024
1 parent 440041b commit d3e9916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ services:

redis:
image: redis:7.2.4
ports: [] # Disable exposed port so that Redis can run inside of the container and not be exposed to host machine -> If using [] for the redis stuff, keeping right beside "ports: " works because apparently implicit map keys need to be followed by map values (the implicit map key thing is the error I got if I tried to do a similar thing to the port binding comment below (I don't know why, but I think it's due to it being an empty list and thus needs to be right beside the ":"))
#- "127.0.0.1:6379:6379"
ports: [] # Disable exposed port so that Redis can run inside of the container and not be exposed to host machine.
#- "127.0.0.1:6379:6379" # Remove [] next to ports and uncomemnt this line to expose redis to the system again
networks:
- app-network

Expand Down

0 comments on commit d3e9916

Please sign in to comment.