commit 3c3acfeff886066410ddea7f012bf1e475a5da16 Author: Kienan Stewart Date: Wed Feb 22 10:24:57 2023 -0500 Initial commit diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..afec8f0 --- /dev/null +++ b/Containerfile @@ -0,0 +1,12 @@ +FROM docker.io/library/debian:bookworm-slim +RUN groupadd mnemosyne +RUN useradd -d /var/lib/mnemosyne -g mnemosyne -r mnemosyne +RUN mkdir -p /var/lib/mnemosyne +RUN chown mnemosyne:mnemosyne /var/lib/mnemosyne +RUN apt-get update +RUN apt-get install -y mnemosyne +RUN apt-get clean + +WORKDIR /var/lib/mnemosyne +USER mnemosyne +CMD /usr/bin/mnemosyne --debug=data/debug.log -d /var/lib/mnemosyne/data --sync-server \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..096efcf --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Mnemosyne sync server container + +Note: the image is quite large since mnemosyne (by default) requires much of Qt5 including the graphics stack. + +Usage: + + # Start with `podman-compose up` + # Generate a password, eg. `echo 'password' | argon2 saltsalt -e` + # Once started, add the following to the config.py file in the data volume: +``` +remote_access_username = "user" +remote_access_password = "passwordhash" +remote_access_password_algo = "argon2" +``` + # Restart the container diff --git a/container-compose.yml b/container-compose.yml new file mode 100644 index 0000000..0a6b3e2 --- /dev/null +++ b/container-compose.yml @@ -0,0 +1,16 @@ +--- +version: '3' + +volumes: + data: {} + +services: + app: + build: + context: + ./ + image: "registry.burntworld.ca/v/mnemosyne" + ports: + - '8512:8512' + volumes: + - 'data:/var/lib/mnemosyne/data'