File tree Expand file tree Collapse file tree 4 files changed +76
-0
lines changed
.examples/docker-compose/with-nginx-proxy Expand file tree Collapse file tree 4 files changed +76
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,25 @@ services:
107
107
# networks:
108
108
# - proxy-tier
109
109
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
+
110
129
volumes :
111
130
db :
112
131
nextcloud :
Original file line number Diff line number Diff line change @@ -120,6 +120,25 @@ services:
120
120
# networks:
121
121
# - proxy-tier
122
122
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
+
123
142
volumes :
124
143
db :
125
144
nextcloud :
Original file line number Diff line number Diff line change @@ -99,6 +99,25 @@ services:
99
99
# networks:
100
100
# - proxy-tier
101
101
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
+
102
121
volumes :
103
122
db :
104
123
nextcloud :
Original file line number Diff line number Diff line change @@ -115,6 +115,25 @@ services:
115
115
# networks:
116
116
# - proxy-tier
117
117
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
+
118
137
volumes :
119
138
db :
120
139
nextcloud :
You can’t perform that action at this time.
0 commit comments