Skip to content

Commit

Permalink
[docker-compose] Prevent exposure of mysql db ports
Browse files Browse the repository at this point in the history
This code deletes the param `ports` to prevent the exposure
of mysql/mariadb ports.

Signed-off-by: Valerio Cosentino <valcos@bitergia.com>
  • Loading branch information
valeriocos authored and jgbarah committed Feb 7, 2020
1 parent 10846f8 commit c00f49c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docker-compose/docker-compose-secured.yml
Expand Up @@ -5,8 +5,6 @@ services:
image: mariadb:10.0
expose:
- "3306"
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
Expand Down
2 changes: 0 additions & 2 deletions docker-compose/docker-compose.yml
Expand Up @@ -5,8 +5,6 @@ services:
image: mariadb:10.0
expose:
- "3306"
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
Expand Down

0 comments on commit c00f49c

Please sign in to comment.