Update nextcloud docker-compose.yml to v3

This commit is contained in:
Ubuntu
2023-04-13 19:10:40 +00:00
parent e24690c7d5
commit f40ab98d22

View File

@@ -31,6 +31,7 @@ services:
- 8088:80 # Serving on port 8088, change if you'd like a different port
volumes:
- /mnt/nfs-share/Nextcloud:/var/www/html # Change this to where you would like Nextcloud data (preferably external storage)
hostname:'cloud.example.com' # Change this (for compose v3)
environment:
- MYSQL_HOST=db
- MYSQL_PASSWORD=<password> # Change this (same as defined in `db`)
@@ -40,7 +41,7 @@ services:
#- REDIS_HOST_PASSWORD=<secure-password>
- NEXTCLOUD_ADMIN_USER=ncadmin # Change this
- NEXTCLOUD_ADMIN_PASSWORD=<admin-password> # Change this
- NEXTCLOUD_HOSTNAME=cloud.example.com # Change this
#- NEXTCLOUD_HOSTNAME=cloud.example.com # Change this (defined as a separate variable in v3)
- SMTP_HOST=smtp.gmail.com # Using gmail's smtp server for emails
- SMTP_SECURE=tls
- SMTP_PORT=587