Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
19 changes: 19 additions & 0 deletions .examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down