From 2bdca956b344609d647e6d0bcc5f6230870ef630 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Kushwaha Date: Wed, 9 Jul 2025 07:39:17 +0000 Subject: [PATCH] Replace use of paulczar/omgwtfssl image in examples Signed-off-by: Abhishek Kumar Kushwaha --- .../mariadb/apache/compose.yaml | 19 +++++++++++++++++++ .../with-nginx-proxy/mariadb/fpm/compose.yaml | 19 +++++++++++++++++++ .../postgres/apache/compose.yaml | 19 +++++++++++++++++++ .../postgres/fpm/compose.yaml | 19 +++++++++++++++++++ 4 files changed, 76 insertions(+) diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml index e1132818d..8c7208e84 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml @@ -107,6 +107,25 @@ services: # networks: # - proxy-tier +#Self-signed Certificate Generator (Replaces omgwtfssl) + cert-generator: + image: frapsoft/openssl + container_name: cert-generator-postgres-fpm + command: > + sh -c " + openssl req -x509 -nodes -days 365 -newkey rsa:2048 + -keyout /certs/servhostname.local.key + -out /certs/servhostname.local.crt + -subj '/CN=servhostname.local/O=MyOrg/C=US' + && openssl req -new -key /certs/servhostname.local.key + -out /certs/servhostname.local.csr + -subj '/CN=servhostname.local/O=MyOrg/C=US'" + volumes: + - certs:/certs + restart: "no" + networks: + - proxy-tier + volumes: db: nextcloud: diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml index 13d4a40b4..e72067542 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml @@ -120,6 +120,25 @@ services: # networks: # - proxy-tier +#Self-signed Certificate Generator (Replaces omgwtfssl) + cert-generator: + image: frapsoft/openssl + container_name: cert-generator-postgres-fpm + command: > + sh -c " + openssl req -x509 -nodes -days 365 -newkey rsa:2048 + -keyout /certs/servhostname.local.key + -out /certs/servhostname.local.crt + -subj '/CN=servhostname.local/O=MyOrg/C=US' + && openssl req -new -key /certs/servhostname.local.key + -out /certs/servhostname.local.csr + -subj '/CN=servhostname.local/O=MyOrg/C=US'" + volumes: + - certs:/certs + restart: "no" + networks: + - proxy-tier + volumes: db: nextcloud: diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml b/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml index 035359f0b..f5b72d121 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml @@ -99,6 +99,25 @@ services: # networks: # - proxy-tier +#Self-signed Certificate Generator (Replaces omgwtfssl) + cert-generator: + image: frapsoft/openssl + container_name: cert-generator-postgres-fpm + command: > + sh -c " + openssl req -x509 -nodes -days 365 -newkey rsa:2048 + -keyout /certs/servhostname.local.key + -out /certs/servhostname.local.crt + -subj '/CN=servhostname.local/O=MyOrg/C=US' + && openssl req -new -key /certs/servhostname.local.key + -out /certs/servhostname.local.csr + -subj '/CN=servhostname.local/O=MyOrg/C=US'" + volumes: + - certs:/certs + restart: "no" + networks: + - proxy-tier + volumes: db: nextcloud: diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml index 78654edde..6be112338 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml @@ -115,6 +115,25 @@ services: # networks: # - proxy-tier +#Self-signed Certificate Generator (Replaces omgwtfssl) + cert-generator: + image: frapsoft/openssl + container_name: cert-generator-postgres-fpm + command: > + sh -c " + openssl req -x509 -nodes -days 365 -newkey rsa:2048 + -keyout /certs/servhostname.local.key + -out /certs/servhostname.local.crt + -subj '/CN=servhostname.local/O=MyOrg/C=US' + && openssl req -new -key /certs/servhostname.local.key + -out /certs/servhostname.local.csr + -subj '/CN=servhostname.local/O=MyOrg/C=US'" + volumes: + - certs:/certs + restart: "no" + networks: + - proxy-tier + volumes: db: nextcloud: