2026-02-15 23:14:33 +00:00
|
|
|
services:
|
|
|
|
|
urbackup:
|
|
|
|
|
image: uroni/urbackup-server:latest
|
|
|
|
|
container_name: urbackup
|
|
|
|
|
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=America/Chicago # Enter your timezone
|
|
|
|
|
# Uncomment the next lines if you want to set the ZFS datasets via ENV variables instead of mounting /etc/urbackup/dataset*
|
|
|
|
|
#- ZFS_IMAGE=tank/images
|
|
|
|
|
#- ZFS_FILES=tank/files
|
|
|
|
|
volumes:
|
|
|
|
|
- /srv/docker/urbackup/database:/var/urbackup
|
|
|
|
|
- /mnt/urbackup/backups:/backups
|
|
|
|
|
# Uncomment the next line if you want to bind-mount the www-folder
|
|
|
|
|
#- /path/to/wwwfolder:/usr/share/urbackup
|
2026-02-15 23:19:42 +00:00
|
|
|
#network_mode: "host"
|
2026-02-15 23:14:33 +00:00
|
|
|
# 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:
|
2026-02-15 23:18:00 +00:00
|
|
|
# - /dev/zfs:/dev/zfs
|
|
|
|
|
networks:
|
|
|
|
|
- traefik_network
|
|
|
|
|
labels:
|
|
|
|
|
### Can comment out if not using Flame Dashboard
|
|
|
|
|
- flame.type=application # "app" works too
|
|
|
|
|
- flame.name=${SERVICE_NAME}
|
|
|
|
|
- flame.url=https://${SERVICE_NAME}.${DOMAIN_NAME} #Adjust to your domain or IP
|
|
|
|
|
- flame.icon=https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/urbackup-server.png
|
|
|
|
|
### Enable Traefik
|
|
|
|
|
- traefik.enable=true
|
|
|
|
|
### For HTTP
|
|
|
|
|
#- traefik.http.routers.${SERVICE_NAME}.rule=Host(`${SERVICE_NAME}.${DOMAIN_NAME}`)
|
|
|
|
|
#- traefik.http.routers.${SERVICE_NAME}.entrypoints=web
|
|
|
|
|
### For HTTPS
|
|
|
|
|
- traefik.http.routers.${SERVICE_NAME}-https.tls=true
|
|
|
|
|
- traefik.http.routers.${SERVICE_NAME}-https.tls.certresolver=cloudflare
|
|
|
|
|
- traefik.http.routers.${SERVICE_NAME}-https.entrypoints=websecure
|
|
|
|
|
- traefik.http.routers.${SERVICE_NAME}-https.rule=Host(`${SERVICE_NAME}.${DOMAIN_NAME}`)
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
traefik_network:
|
|
|
|
|
external: true
|