Initial commit

This commit is contained in:
Kienan Stewart 2023-02-22 10:24:57 -05:00
commit 3c3acfeff8
3 changed files with 43 additions and 0 deletions

12
Containerfile Normal file
View File

@ -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

15
README.md Normal file
View File

@ -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

16
container-compose.yml Normal file
View File

@ -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'