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:
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+
110129volumes :
111130 db :
112131 nextcloud :
Original file line number Diff line number Diff 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+
123142volumes :
124143 db :
125144 nextcloud :
Original file line number Diff line number Diff 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+
102121volumes :
103122 db :
104123 nextcloud :
Original file line number Diff line number Diff 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+
118137volumes :
119138 db :
120139 nextcloud :
You can’t perform that action at this time.
0 commit comments