Last active
September 4, 2024 00:42
-
-
Save roelds/e0389a9e8c78431ac8aa6df4790e37cf to your computer and use it in GitHub Desktop.
NextCloud AIO - Docker Run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#regular nat networking: | |
docker run \ | |
--init \ | |
--sig-proxy=false \ | |
--name nextcloud-aio-mastercontainer \ | |
--restart always \ | |
--publish 80:80 \ | |
--publish 8080:8080 \ | |
--publish 8443:8443 \ | |
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ | |
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ | |
--env NEXTCLOUD_ADDITIONAL_APKS="imagemagick htop curl wget" \ | |
--env NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS="imagick pdo pdo_sqlite" \ | |
--env BORG_RETENTION_POLICY="--keep-within=2d --keep-weekly=2 --keep-monthly=2" \ | |
--security-opt label:disable \ | |
--env NEXTCLOUD_MEMORY_LIMIT=1024M \ | |
--env COLLABORA_SECCOMP_DISABLED=true \ | |
nextcloud/all-in-one:latest | |
https://ip.ip.ip.ip:8080 | |
https://yourdomain.tld:8443 | |
# --env NEXTCLOUD_DATADIR="/mnt/my-btrfs/ncdata" | |
# --env NEXTCLOUD_TRUSTED_CACERTS_DIR=/path/to/my/cacerts | |
# get passphrase: | |
docker exec nextcloud-aio-mastercontainer grep password /mnt/docker-aio-config/data/configuration.json | |
# docker host networking - linux host only for engine OR any newest docker desktop: | |
docker run \ | |
--net=host \ | |
--init \ | |
--sig-proxy=false \ | |
--name nextcloud-aio-mastercontainer \ | |
--restart always \ | |
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ | |
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ | |
--env NEXTCLOUD_ADDITIONAL_APKS="imagemagick htop curl wget" \ | |
--env NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS="imagick pdo pdo_sqlite" \ | |
--env BORG_RETENTION_POLICY="--keep-within=2d --keep-weekly=2 --keep-monthly=2" \ | |
--security-opt label:disable \ | |
--env NEXTCLOUD_MEMORY_LIMIT=640M \ | |
--env COLLABORA_SECCOMP_DISABLED=true \ | |
nextcloud/all-in-one:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment