Skip to content

Commit a6e3752

Browse files
chriscrosstalkclaude
authored andcommitted
fix(security): remove MySQL and Redis port exposure to host
MySQL (3306) and Redis (6379) were published to all host interfaces despite only being accessed by the admin container via Docker's internal network. Redis has no authentication, so anyone on the LAN could connect. Removes the port mappings — containers still communicate internally via Docker service names. Closes #279 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 78455cc commit a6e3752

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

install/management_compose.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ services:
5757
image: mysql:8.0
5858
container_name: nomad_mysql
5959
restart: unless-stopped
60-
ports:
61-
- "3306:3306"
6260
environment:
6361
- MYSQL_ROOT_PASSWORD=replaceme
6462
- MYSQL_DATABASE=nomad
@@ -75,8 +73,6 @@ services:
7573
image: redis:7-alpine
7674
container_name: nomad_redis
7775
restart: unless-stopped
78-
ports:
79-
- "6379:6379"
8076
volumes:
8177
- /opt/project-nomad/redis:/data
8278
healthcheck:

0 commit comments

Comments
 (0)