From 8ebf6522cd83aa5d965202cff386b5b8e079922a Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 5 Dec 2015 23:19:24 +0100 Subject: expose port to outside in docker-compose files --- Services/apache/docker-compose.yml | 3 +++ Services/mariadb/docker-compose.yml | 2 ++ Services/memcache/docker-compose.yml | 2 ++ Services/mongo/docker-compose.yml | 3 +++ Services/nodejs/docker-compose.yml | 2 ++ Services/ooconv/docker-compose.yml | 2 ++ Services/php/docker-compose.yml | 3 +++ Services/postgres/docker-compose.yml | 2 ++ 8 files changed, 19 insertions(+) (limited to 'Services') diff --git a/Services/apache/docker-compose.yml b/Services/apache/docker-compose.yml index 42e1f23..bb4617f 100644 --- a/Services/apache/docker-compose.yml +++ b/Services/apache/docker-compose.yml @@ -5,6 +5,9 @@ server: memswap_limit: 500m cpu_shares: 2 restart: "on-failure:2" + ports: + - "80:80" + - "443:443" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "apache" diff --git a/Services/mariadb/docker-compose.yml b/Services/mariadb/docker-compose.yml index e81fb36..a42f575 100644 --- a/Services/mariadb/docker-compose.yml +++ b/Services/mariadb/docker-compose.yml @@ -5,6 +5,8 @@ server: memswap_limit: 1g cpu_shares: 8 restart: "on-failure:2" + ports: + - "3306:3306" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "mariadb" diff --git a/Services/memcache/docker-compose.yml b/Services/memcache/docker-compose.yml index 8e657e3..b907088 100644 --- a/Services/memcache/docker-compose.yml +++ b/Services/memcache/docker-compose.yml @@ -5,6 +5,8 @@ server: memswap_limit: 3g cpu_shares: 2 restart: "on-failure:2" + ports: + - "11211:11211" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "memcache" diff --git a/Services/mongo/docker-compose.yml b/Services/mongo/docker-compose.yml index 17982a5..6a76b66 100644 --- a/Services/mongo/docker-compose.yml +++ b/Services/mongo/docker-compose.yml @@ -5,6 +5,9 @@ server: memswap_limit: 2g cpu_shares: 10 restart: "on-failure:2" + ports: + - "27017:27017" + - "28017:28017" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "mongo" diff --git a/Services/nodejs/docker-compose.yml b/Services/nodejs/docker-compose.yml index af118ec..48774e0 100644 --- a/Services/nodejs/docker-compose.yml +++ b/Services/nodejs/docker-compose.yml @@ -5,6 +5,8 @@ server: memswap_limit: 1g cpu_shares: 5 restart: "on-failure:2" + ports: + - "8000:8000" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "nodejs" diff --git a/Services/ooconv/docker-compose.yml b/Services/ooconv/docker-compose.yml index 48b535c..d151395 100644 --- a/Services/ooconv/docker-compose.yml +++ b/Services/ooconv/docker-compose.yml @@ -5,6 +5,8 @@ server: memswap_limit: 2g cpu_shares: 8 restart: "on-failure:2" + ports: + - "2002:2002" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "ooconv" diff --git a/Services/php/docker-compose.yml b/Services/php/docker-compose.yml index beff9fe..1b6d62a 100644 --- a/Services/php/docker-compose.yml +++ b/Services/php/docker-compose.yml @@ -5,6 +5,9 @@ server: memswap_limit: 1g cpu_shares: 5 restart: "on-failure:2" + ports: + - "80:80" + - "443:443" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "php" diff --git a/Services/postgres/docker-compose.yml b/Services/postgres/docker-compose.yml index a0db319..26d502a 100644 --- a/Services/postgres/docker-compose.yml +++ b/Services/postgres/docker-compose.yml @@ -5,6 +5,8 @@ server: memswap_limit: 1g cpu_shares: 8 restart: "on-failure:2" + ports: + - "5432:5432" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "postgresql" -- cgit v1.2.3