---
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /mnt/cloud/nextclouddb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=***********
- MYSQL_PASSWORD=************
- MYSQL_DATABASE=************
- MYSQL_USER=************
app:
image: nextcloud
#image: nextcloud/all-in-one:latest
restart: always
ports:
- 9999:80
links:
- db
volumes:
- /mnt/cloud/nextcloud:/var/www/html
- /mnt/cloud/data:/var/www/html/data
environment:
- PUID=1000
- PGID=1000
- MYSQL_PASSWORD=************
- MYSQL_DATABASE=************
- MYSQL_USER=************
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=************
- OVERWRITEHOST=************
- OVERWRITEPROTOCOL=https
nextcloud-cron:
image: nextcloud
container_name: nextcloud-cron
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=************
- MYSQL_PASSWORD=************
- MYSQL_DATABASE=************
- MYSQL_USER=************
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=************
- OVERWRITEHOST=************
- OVERWRITEPROTOCOL=************
volumes:
- /mnt/cloud/nextcloud:/var/www/html
- /mnt/cloud/data:/var/www/html/data
- /mnt/cloud/nextcloud/config:/var/www/html/config
entrypoint: /cron.sh
depends_on:
- app
---
version: '3.8'
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
db:
services:
db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /mnt/cloud/nextclouddb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=ttT12qEwbZ4242
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
#image: nextcloud
image: nextcloud/all-in-one:latest
container_name: nextcloud-aio-mastercontainer
restart: always
ports:
- 9999:80
- 9998:8080
links:
- db
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
- /mnt/cloud/nextcloud:/var/www/html
- /mnt/cloud/data:/var/www/html/data
environment:
- PUID=1000
- PGID=1000
- MYSQL_PASSWORD=ttT12qEwbZ4242
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=cloud.justjew.ru
- OVERWRITEHOST=cloud.justjew.ru
- OVERWRITEPROTOCOL=https
nextcloud-cron:
image: nextcloud
container_name: nextcloud-cron
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=ttT12qEwbZ4242
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=cloud.justjew.ru
- OVERWRITEHOST=cloud.justjew.ru
- OVERWRITEPROTOCOL=https
volumes:
- /mnt/cloud/nextcloud:/var/www/html
- /mnt/cloud/data:/var/www/html/data
- /mnt/cloud/nextcloud/config:/var/www/html/config
entrypoint: /cron.sh
depends_on:
- nextcloud
Trying to fix docker.sock permissions internally...
Creating docker group internally with id 998
Initial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
[07-May-2023 15:38:51] NOTICE: fpm is running, pid 119
[07-May-2023 15:38:51] NOTICE: ready to handle connections
INF ts=1683473931.6963575 msg=using provided configuration config_file=/Caddyfile config_adapter=
INF ts=1683473931.6990001 msg=failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details.