From fda3fb431993539d16d5491c19c461c900ec342d Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 21 May 2026 15:53:07 +0100 Subject: [PATCH] docker-compose: By default bind only to localhost To avoid allowing the services to run on all available networks by default bind the services to localhost. --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0c4a067..47eda67 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,12 +5,12 @@ services: mailcatcher: image: schickling/mailcatcher ports: - - "1080:1080" + - "127.0.0.1:1080:1080" mysql: image: mariadb:10 ports: - - "3306:3306" + - "127.0.0.1:3306:3306" volumes: - mysql_data:/var/lib/mysql environment: @@ -20,7 +20,7 @@ services: wordpress: image: thedxw/wpc-wordpress:php8.2 ports: - - "80:80" + - "127.0.0.1:80:80" links: - mysql - mailcatcher