Comments (2)
It should. You just need to mount the nextcloud config directory into the container (via bind mount for example). You can have a look into https://github.com/waja/docker-calcardbackup/blob/development/run.sh for having an idea how the backup is taken and what you need to provide. https://codeberg.org/BernieO/calcardbackup/src/branch/stable/README.md might also helpful.
from docker-calcardbackup.
I got it working, here is my compose I ended up with for reference:
version: "3.8"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer # This line is not allowed to be changed
nextcloud_aio_nextcloud:
name: nextcloud_aio_nextcloud
services:
# https://github.com/nextcloud/all-in-one/blob/main/compose.yaml
nextcloud:
image: nextcloud/all-in-one:latest # Must be changed to 'nextcloud/all-in-one:latest-arm64' when used with an arm64 CPU
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
#- 80:80 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
- 3080:8080
#- 8443:8443 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
environment: # Is needed when using any of the options below
- APACHE_PORT=3443 # Is needed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
# - NEXTCLOUD_DATADIR=/mnt/ncdata # Allows to set the host directory for Nextcloud's datadir. See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
- NEXTCLOUD_MOUNT=/mnt/nfs # Allows the Nextcloud container to access the chosen directory on the host. See https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host
- NEXTCLOUD_MAX_TIME=14400 # 4 hours
- NEXTCLOUD_UPLOAD_LIMIT=32G # 32 GB
- NEXTCLOUD_MEMORY_LIMIT=1024M # 1 GB
networks:
- nextcloud-aio
# https://github.com/waja/docker-calcardbackup/blob/development/docker-compose-example.yml
nextcloud-nc-backup:
image: waja/calcardbackup
environment:
- CRON_TIME=0 0 * * *
- INIT_BACKUP=yes
- CALCARD_OPTS=-i -r 30
- NC_HOST=nextcloud-aio-nextcloud
- NC_PORT=9000
- DB_HOST=nextcloud-aio-database
- DB_PORT=5432
depends_on:
- nextcloud
restart: unless-stopped
volumes:
- /opt/calcardbackup:/backup
- nextcloud_aio_nextcloud:/nextcloud
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
- nextcloud-aio
networks:
nextcloud-aio:
name: nextcloud-aio
driver: bridge
from docker-calcardbackup.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-calcardbackup.