From 6182616cc4c5388c9349f0657d7d307ab535e396 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Fri, 8 Nov 2024 10:35:10 +0100 Subject: [PATCH] Remove needlessly published ports from examples Publishing the FPM port can even be dangerous if the image is run using docker, which manipulates firewalls to provide access from the public to all published ports. --- examples/docker-compose-fpm-alpine.yaml | 4 ---- examples/docker-compose-fpm.yaml | 4 ---- examples/docker-compose-mysql.yaml | 3 --- 3 files changed, 11 deletions(-) diff --git a/examples/docker-compose-fpm-alpine.yaml b/examples/docker-compose-fpm-alpine.yaml index 23188ba47..100e5789f 100644 --- a/examples/docker-compose-fpm-alpine.yaml +++ b/examples/docker-compose-fpm-alpine.yaml @@ -9,8 +9,6 @@ services: - roundcubedb links: - roundcubedb - ports: - - 9000:9000 volumes: - ./www:/var/www/html environment: @@ -27,8 +25,6 @@ services: image: postgres:alpine container_name: roundcubedb # restart: unless-stopped - ports: - - 5432:5432 volumes: - ./db/postgres:/var/lib/postgresql/data environment: diff --git a/examples/docker-compose-fpm.yaml b/examples/docker-compose-fpm.yaml index 550a32d5b..288f692dd 100644 --- a/examples/docker-compose-fpm.yaml +++ b/examples/docker-compose-fpm.yaml @@ -9,8 +9,6 @@ services: - roundcubedb links: - roundcubedb - ports: - - 9000:9000 volumes: - ./www:/var/www/html environment: @@ -27,8 +25,6 @@ services: image: postgres:latest container_name: roundcubedb # restart: unless-stopped - ports: - - 5432:5432 volumes: - ./db/postgres:/var/lib/postgresql/data environment: diff --git a/examples/docker-compose-mysql.yaml b/examples/docker-compose-mysql.yaml index 2b4ff1bf6..d369d3bc5 100644 --- a/examples/docker-compose-mysql.yaml +++ b/examples/docker-compose-mysql.yaml @@ -7,9 +7,6 @@ services: # restart: unless-stopped volumes: - ./db/mysql:/var/lib/mysql - ports: - - 34010:5432 - - 33006:3306 environment: - MYSQL_ROOT_PASSWORD=roundcube-mysql-pw - MYSQL_DATABASE=roundcubemail