Questions / Problems with UrBackup Server in Docker

Getting closer …

I created a new image that combines the uroni/urbackup-server and whatang/docker_urbackup images.

Dockerfile

FROM debian:stable

ENV DEBIAN_FRONTEND=noninteractive
ARG VERSION=2.2.11
ENV VERSION ${VERSION}
ARG ARCH=armhf
ENV FILE urbackup-server_${VERSION}_${ARCH}.deb
ENV URL https://www.urbackup.org/downloads/Server/${VERSION}/${FILE}

ADD ${URL} /root/${FILE}

RUN apt-get update \
        && echo "/var/urbackup" | apt-get install -y /root/${FILE} \
        && rm /root/${FILE} && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY start /usr/bin/start

EXPOSE 55413
EXPOSE 55414
EXPOSE 55415
EXPOSE 35623/udp

VOLUME [ "/backups", "/var/urbackup", "/var/log", "/usr/share/urbackup" ]
ENTRYPOINT ["/usr/bin/start"]
CMD ["run"]

start

#!/bin/bash
echo "/backups" > /var/urbackup/backupfolder
chown urbackup:urbackup /backups
chown urbackup:urbackup /var/urbackup
exec urbackupsrv "$@"

This builds and runs. I can open a web browser and navigate to http:[server_ip]:55414 and get:

Sorry. File not found.

And the log fills with the following:

/usr/bin/start: line 3: /var/urbackup/backupfolder: Read-only file system
chown: changing ownership of '/backups': Read-only file system
chown: changing ownership of '/var/urbackup': Read-only file system
2019-06-24 19:22:42: Starting HTTP-Server on port 55414
2019-06-24 19:22:42: HTTP: Server started up successfully!
2019-06-24 19:22:42: WARNING: SQLite: cannot open file at line 34198 of [0ee482a1e0] errorcode: 14
2019-06-24 19:22:42: WARNING: SQLite: os_unix.c:34198: (13) open(/var/urbackup/backup_server.db-shm) -  errorcode: 14
2019-06-24 19:22:42: WARNING: SQLite: unable to open database file errorcode: 14
2019-06-24 19:22:42: ERROR: Error preparing Query [PRAGMA synchronous=NORMAL]: unable to open database file. Retrying in 1s...

I am assuming permissions is also why the web site does not get created.

I am not clear on what user it is expecting and where to set the user.

Thanks.