Initial commit
This commit is contained in:
commit
3c3acfeff8
|
@ -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
|
|
@ -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
|
|
@ -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'
|
Loading…
Reference in New Issue