Remove needlessly published ports from examples
authorPablo Zmdl <redacted>
Fri, 8 Nov 2024 09:35:10 +0000 (10:35 +0100)
committerPablo Zmdl <redacted>
Fri, 8 Nov 2024 09:42:59 +0000 (10:42 +0100)
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
examples/docker-compose-fpm.yaml
examples/docker-compose-mysql.yaml

index 23188ba478c533275f5aa8bc371bb9b199226455..100e5789f2002986be6bfa4336d5d7670c2df39e 100644 (file)
@@ -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:
index 550a32d5b7d494d71ea02b892f9ac80e2e00e59e..288f692dd13b47991a0bb5463be9e87adfdf09a6 100644 (file)
@@ -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:
index 2b4ff1bf6ab56a82840be387aa67b42ba738e45f..d369d3bc5522e2cfd77de0027371d2d2631d73a5 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT