Urbackup Docker Deployment
Deploy urbackup with docker swarm
Fri, 01 Mar 2024
Usage
I use homebridge to control my Apex Neptune aquarium controller via a homebridge plugin I created myself
Docker Swarm
I am a firm believer that CPU should be left to unlimited on every service that is meant to run 24/7 and that you should limit your memory to prevent OOM issues. Your memory limit should never exceed your requests limit. I had to change the port in order to get it to work. This will expose the port 8581 on the host and it should work. One thing to note, you should set this up to deploy only on a single host
version: "3.9"
services:
urbackup:
image: uroni/urbackup-server
volumes:
- /shares/docker/urbackup:/var/urbackup # urbackup config folder
- /shares/backups/urbackup:/backups # backup location
deploy:
placement:
constraints:
- node.hostname == node1 # change node1 to your servers hostname
resources: # can go lower with memory, its mostly used for post preproccessing iirc
reservations:
memory: 4G
limits:
memory: 4G
environment:
TZ: American/New_York
PUID: 1026
PGID: 100
networks:
host: {}