Added new backup instance

This commit is contained in:
2023-03-25 11:21:24 +00:00
parent a359f776fc
commit f947b681b9
3 changed files with 56 additions and 14 deletions
+48 -6
View File
@@ -1,27 +1,69 @@
version: '3.8' version: '3.8'
volumes: volumes:
pictures: dockerstorage:
driver_opts:
type: nfs
o: addr=dockerstorage,nfsvers=4
device: :/dockerstorage
git:
driver_opts: driver_opts:
type: nfs type: nfs
o: addr=maurice,nfsvers=4 o: addr=maurice,nfsvers=4
device: :/pictures device: :/git
bands:
driver_opts:
type: nfs
o: addr=julien,nfsvers=3
device: :/Bands
configs: configs:
stackstorage: stackstorage:
external: true external: true
services: services:
pictures: dockerstorage:
image: registry.vbchaos.nl/rclone:arm64 image: registry.vbchaos.nl/rclone:arm64
environment: environment:
- COMMAND=rclone copy -v /backup/ stackstorage:/testfolder - COMMAND=rclone copy -v /backup/ stackstorage:/dockerstorage
- CRON_SCHEDULE=* 18-20 * * * - CRON_SCHEDULE=0 0 * * *
configs: configs:
- source: stackstorage - source: stackstorage
target: /config/rclone.conf target: /config/rclone.conf
volumes: volumes:
- pictures:/backup - dockerstorage:/backup
deploy:
mode: replicated
replicas: 1
git:
image: registry.vbchaos.nl/rclone:arm64
environment:
- COMMAND=rclone copy -v /backup/ stackstorage:/git
- CRON_SCHEDULE=0 1 * * *
configs:
- source: stackstorage
target: /config/rclone.conf
volumes:
- git:/backup
deploy:
mode: replicated
replicas: 1
bands:
image: registry.vbchaos.nl/rclone:arm64
environment:
- COMMAND=rclone copy -v /backup/ stackstorage:/testbackup
- CRON_SCHEDULE=* 0 2 * * *
configs:
- source: stackstorage
target: /config/rclone.conf
volumes:
- bands:/backup
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
+1 -1
View File
@@ -1 +1 @@
docker stack deploy -c docker-compose.yml --with-registry-auth backuppictures docker stack deploy -c docker-compose.yml --with-registry-auth backup
+7 -7
View File
@@ -6,29 +6,29 @@ volumes:
driver_opts: driver_opts:
type: nfs type: nfs
o: addr=dockerstorage,nfsvers=4 o: addr=dockerstorage,nfsvers=4
device: :/swarm/stacks/jenkins/home device: :/dockerstorage/jenkins/home
jenkins_certs: jenkins_certs:
driver_opts: driver_opts:
type: nfs type: nfs
o: addr=dockerstorage,nfsvers=4 o: addr=dockerstorage,nfsvers=4
device: :/swarm/stacks/jenkins/certs device: :/dockerstorage/jenkins/certs
services: services:
jenkins: jenkins:
image: docker:5000/jenkins-docker image: registry.vbchaos.nl/jenkins-docker
ports: ports:
- 8080:8080 - 8080:8080
- 50000:50000 - 50000:50000
environment: # environment:
- DOCKER_CERT_PATH=/certs/client # - DOCKER_CERT_PATH=/certs/client
- DOCKER_TLS_VERIFY=1 # - DOCKER_TLS_VERIFY=1
deploy: deploy:
placement: placement:
constraints: constraints:
- "node.labels.highperformance==YES" - "node.labels.highperformance==YES"
volumes: volumes:
- jenkins_home:/var/jenkins_home - jenkins_home:/var/jenkins_home
- jenkins_certs:/certs/client # - jenkins_certs:/certs/client
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock