version: '3.9'

services:

  urbackup:
    image: uroni/urbackup-server:latest 
    container_name: urbackup
    environment:
      - USER_UID={{ service_user_id }}
      - USER_GID={{ service_group_id }}
      - TZ=Europe/Berlin     
    restart: always
    volumes:
      - {{ service_directory }}/database:/var/urbackup
      - {{ service_directory }}/backup:/backups
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - '55413:55413' #FastCGI for web interface Incoming
      - '80:55414' #HTTP web interface Incoming
      - '55415:55415' #Internet clients Incoming
      - '35623:35623'

    #network_mode: "host"
    networks:
      - default
    #devices:
    #  - /dev/zfs:/dev/zfs

networks:
  default:
    ipam:
      driver: default
      config:
        - subnet: 172.2.0.0/16
          gateway: 172.2.0.1