From 21492e6b9d22029ae1acd040d9523e18d150f5fe Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 2 Feb 2023 15:11:40 +0100 Subject: [PATCH] add expose property to containers definition Signed-off-by: Simon L --- php/containers-schema.json | 6 ++++++ php/containers.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/php/containers-schema.json b/php/containers-schema.json index 0667942d..40dcc16d 100644 --- a/php/containers-schema.json +++ b/php/containers-schema.json @@ -15,6 +15,12 @@ "image": { "type": "string" }, + "expose": { + "type": "array", + "items": { + "type": "string" + } + }, "depends_on": { "type": "array", "items": { diff --git a/php/containers.json b/php/containers.json index 97f494f5..487d0d41 100644 --- a/php/containers.json +++ b/php/containers.json @@ -17,6 +17,9 @@ "protocol": "tcp" } ], + "expose": [ + "%APACHE_PORT%" + ], "internal_port": "%APACHE_PORT%", "environment": [ "NC_DOMAIN=%NC_DOMAIN%", @@ -47,6 +50,9 @@ "container_name": "nextcloud-aio-database", "display_name": "Database", "image": "nextcloud/aio-postgresql", + "expose": [ + "5432" + ], "internal_port": "5432", "secrets": [ "DATABASE_PASSWORD" @@ -84,6 +90,10 @@ ], "display_name": "Nextcloud", "image": "nextcloud/aio-nextcloud", + "expose": [ + "9000", + "7867" + ], "internal_port": "9000", "secrets": [ "DATABASE_PASSWORD", @@ -164,6 +174,9 @@ "container_name": "nextcloud-aio-redis", "display_name": "Redis", "image": "nextcloud/aio-redis", + "expose": [ + "6379" + ], "internal_port": "6379", "environment": [ "REDIS_HOST_PASSWORD=%REDIS_PASSWORD%", @@ -186,6 +199,9 @@ "container_name": "nextcloud-aio-collabora", "display_name": "Collabora", "image": "nextcloud/aio-collabora", + "expose": [ + "9980" + ], "internal_port": "9980", "environment": [ "aliasgroup1=https://%NC_DOMAIN%:443", @@ -218,6 +234,9 @@ "protocol": "udp" } ], + "expose": [ + "%TALK_PORT%" + ], "internal_port": "%TALK_PORT%", "environment": [ "NC_DOMAIN=%NC_DOMAIN%", @@ -341,6 +360,9 @@ "container_name": "nextcloud-aio-clamav", "display_name": "ClamAV", "image": "nextcloud/aio-clamav", + "expose": [ + "3310" + ], "internal_port": "3310", "environment": [ "TZ=%TIMEZONE%", @@ -359,6 +381,9 @@ "container_name": "nextcloud-aio-onlyoffice", "display_name": "OnlyOffice", "image": "nextcloud/aio-onlyoffice", + "expose": [ + "80" + ], "internal_port": "80", "environment": [ "TZ=%TIMEZONE%", @@ -382,6 +407,9 @@ "container_name": "nextcloud-aio-imaginary", "display_name": "Imaginary", "image": "nextcloud/aio-imaginary", + "expose": [ + "9000" + ], "internal_port": "9000", "environment": [ "TZ=%TIMEZONE%" @@ -392,6 +420,9 @@ "container_name": "nextcloud-aio-fulltextsearch", "display_name": "Fulltextsearch", "image": "nextcloud/aio-fulltextsearch", + "expose": [ + "9200" + ], "internal_port": "9200", "environment": [ "TZ=%TIMEZONE%",