mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-21 03:06:08 +02:00
Fix problems with self signed SSL config - need to ensure cert and key file names are the same as VIRTUAL_HOST environment variable, and that DEFAULT_HOST needs to be specified as well
Signed-off-by: Sandeep Raghuraman <sandy.8925@gmail.com>
This commit is contained in:
parent
2d8f990304
commit
ee24cea971
2 changed files with 8 additions and 5 deletions
|
@ -0,0 +1 @@
|
||||||
|
VHOST=<your-server-ip-address-or-url-here>
|
|
@ -24,7 +24,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html:z
|
- nextcloud:/var/www/html:z
|
||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=
|
- VIRTUAL_HOST=${VHOST}
|
||||||
- LETSENCRYPT_HOST=
|
- LETSENCRYPT_HOST=
|
||||||
- LETSENCRYPT_EMAIL=
|
- LETSENCRYPT_EMAIL=
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
|
@ -63,6 +63,8 @@ services:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:z,ro
|
- /var/run/docker.sock:/tmp/docker.sock:z,ro
|
||||||
networks:
|
networks:
|
||||||
- proxy-tier
|
- proxy-tier
|
||||||
|
environment:
|
||||||
|
DEFAULT_HOST=${VHOST}
|
||||||
|
|
||||||
letsencrypt-companion:
|
letsencrypt-companion:
|
||||||
image: nginxproxy/acme-companion
|
image: nginxproxy/acme-companion
|
||||||
|
@ -85,11 +87,11 @@ services:
|
||||||
# volumes:
|
# volumes:
|
||||||
# - certs:/certs
|
# - certs:/certs
|
||||||
# environment:
|
# environment:
|
||||||
# - SSL_SUBJECT=servhostname.local
|
# - SSL_SUBJECT=${VHOST}
|
||||||
# - CA_SUBJECT=my@example.com
|
# - CA_SUBJECT=my@example.com
|
||||||
# - SSL_KEY=/certs/servhostname.local.key
|
# - SSL_KEY=/certs/${VHOST}.key
|
||||||
# - SSL_CSR=/certs/servhostname.local.csr
|
# - SSL_CSR=/certs/${VHOST}.csr
|
||||||
# - SSL_CERT=/certs/servhostname.local.crt
|
# - SSL_CERT=/certs/${VHOST}.crt
|
||||||
# networks:
|
# networks:
|
||||||
# - proxy-tier
|
# - proxy-tier
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue