Coder Social home page Coder Social logo

urbackup-server-docker's Introduction

Multiarch (amd64/i386/armhf/arm64(aarch64)) docker images for UrBackup server.

Pulling the :latest tag should automatically grab the right image for your arch.

Most of the original code is based on the image by Whatang

Running

If you want to use docker run command:

For PGID and PUID please enter the UID/GID of the user who should own the files outside the container.

docker run -d \
                --name urbackup \
                --restart unless-stopped \
                -e PUID=1000 \  
                -e PGID=100  \
                -e TZ=Europe/Berlin \
                -v /path/to/your/backup/folder:/backups \
                -v /path/to/your/database/folder:/var/urbackup \
                --network host \
                uroni/urbackup-server:latest

For BTRFS-Support add --cap-add SYS_ADMIN to the command above

For ZFS support add --device /dev/zfs to the command above

If you want to externally bind-mount the www-folder add -v /path/to/wwwfolder:/usr/share/urbackup

Or via docker-compose (compatible with stacks in Portainer):

docker-compose.yml

version: '2'

services:
  urbackup:
    image: uroni/urbackup-server:latest
    container_name: urbackup
    restart: unless-stopped
    environment:
      - PUID=1000 # Enter the UID of the user who should own the files here
      - PGID=100  # Enter the GID of the user who should own the files here
      - TZ=Europe/Berlin # Enter your timezone
    volumes:
      - /path/to/your/database/folder:/var/urbackup
      - /path/to/your/backup/folder:/backups
      # Uncomment the next line if you want to bind-mount the www-folder
      #- /path/to/wwwfolder:/usr/share/urbackup
    network_mode: "host"
    # Uncomment the following two lines if you're using BTRFS support
    #cap_add:
    #  - SYS_ADMIN
    # Uncomment the following two lines if you're using ZFS support
    #devices:
    #  - /dev/zfs:/dev/zfs
  

After running the container Urbackup should be reachable on the web interface on port :55414

Building locally

Please use the provided build.sh script:

./build.sh

On default the script will build a container for amd64 with the most recent stable version.

To build for other architectures the script accepts following argument: ./build.sh [ARCH] [VERSION]

[ARCH] can be amd64, i386, armhf or arm64; [Version] can be an existing version of UrBackup-server

For example if you want to build an image for version 2.4.10 on armhf use the following command:

./build.sh armhf 2.4.10

urbackup-server-docker's People

Contributors

themorlan avatar uroni avatar jonct avatar whatang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.