Skip to content

Commit 2bdca95

Browse files
committed
Replace use of paulczar/omgwtfssl image in examples
Signed-off-by: Abhishek Kumar Kushwaha <[email protected]>
1 parent f0a7a8c commit 2bdca95

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,25 @@ services:
107107
# networks:
108108
# - proxy-tier
109109

110+
#Self-signed Certificate Generator (Replaces omgwtfssl)
111+
cert-generator:
112+
image: frapsoft/openssl
113+
container_name: cert-generator-postgres-fpm
114+
command: >
115+
sh -c "
116+
openssl req -x509 -nodes -days 365 -newkey rsa:2048
117+
-keyout /certs/servhostname.local.key
118+
-out /certs/servhostname.local.crt
119+
-subj '/CN=servhostname.local/O=MyOrg/C=US'
120+
&& openssl req -new -key /certs/servhostname.local.key
121+
-out /certs/servhostname.local.csr
122+
-subj '/CN=servhostname.local/O=MyOrg/C=US'"
123+
volumes:
124+
- certs:/certs
125+
restart: "no"
126+
networks:
127+
- proxy-tier
128+
110129
volumes:
111130
db:
112131
nextcloud:

.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,25 @@ services:
120120
# networks:
121121
# - proxy-tier
122122

123+
#Self-signed Certificate Generator (Replaces omgwtfssl)
124+
cert-generator:
125+
image: frapsoft/openssl
126+
container_name: cert-generator-postgres-fpm
127+
command: >
128+
sh -c "
129+
openssl req -x509 -nodes -days 365 -newkey rsa:2048
130+
-keyout /certs/servhostname.local.key
131+
-out /certs/servhostname.local.crt
132+
-subj '/CN=servhostname.local/O=MyOrg/C=US'
133+
&& openssl req -new -key /certs/servhostname.local.key
134+
-out /certs/servhostname.local.csr
135+
-subj '/CN=servhostname.local/O=MyOrg/C=US'"
136+
volumes:
137+
- certs:/certs
138+
restart: "no"
139+
networks:
140+
- proxy-tier
141+
123142
volumes:
124143
db:
125144
nextcloud:

.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,25 @@ services:
9999
# networks:
100100
# - proxy-tier
101101

102+
#Self-signed Certificate Generator (Replaces omgwtfssl)
103+
cert-generator:
104+
image: frapsoft/openssl
105+
container_name: cert-generator-postgres-fpm
106+
command: >
107+
sh -c "
108+
openssl req -x509 -nodes -days 365 -newkey rsa:2048
109+
-keyout /certs/servhostname.local.key
110+
-out /certs/servhostname.local.crt
111+
-subj '/CN=servhostname.local/O=MyOrg/C=US'
112+
&& openssl req -new -key /certs/servhostname.local.key
113+
-out /certs/servhostname.local.csr
114+
-subj '/CN=servhostname.local/O=MyOrg/C=US'"
115+
volumes:
116+
- certs:/certs
117+
restart: "no"
118+
networks:
119+
- proxy-tier
120+
102121
volumes:
103122
db:
104123
nextcloud:

.examples/docker-compose/with-nginx-proxy/postgres/fpm/compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,25 @@ services:
115115
# networks:
116116
# - proxy-tier
117117

118+
#Self-signed Certificate Generator (Replaces omgwtfssl)
119+
cert-generator:
120+
image: frapsoft/openssl
121+
container_name: cert-generator-postgres-fpm
122+
command: >
123+
sh -c "
124+
openssl req -x509 -nodes -days 365 -newkey rsa:2048
125+
-keyout /certs/servhostname.local.key
126+
-out /certs/servhostname.local.crt
127+
-subj '/CN=servhostname.local/O=MyOrg/C=US'
128+
&& openssl req -new -key /certs/servhostname.local.key
129+
-out /certs/servhostname.local.csr
130+
-subj '/CN=servhostname.local/O=MyOrg/C=US'"
131+
volumes:
132+
- certs:/certs
133+
restart: "no"
134+
networks:
135+
- proxy-tier
136+
118137
volumes:
119138
db:
120139
nextcloud:

0 commit comments

Comments
 (0)