Skip to content

Commit bd0b2d7

Browse files
authored
Added docker-compose.yml way of installing (#994)
I added a docker compose file example to the documentation. Note that the thumbnail directory bind mount is necessary because if it wasn't there already and the content folder isn't writable, it will fail to mkdir the thumb /content/thumb.
1 parent 03ccb7d commit bd0b2d7

File tree

1 file changed

+18
-0
lines changed
  • tools/Documentation/installing-lanraragi

1 file changed

+18
-0
lines changed

tools/Documentation/installing-lanraragi/docker.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ difegue/lanraragi
3030
You can tell Docker to auto-restart the LRR container on boot by adding the `--restart always` flag to this command.
3131
{% endhint %}
3232

33+
{% hint style="info" %}
34+
Alternatively, if you prefer a `docker-compose.yml` file, use:
35+
```yaml
36+
---
37+
services:
38+
lanraragi:
39+
image: difegue/lanraragi
40+
container_name: lanraragi
41+
ports:
42+
- "3000:3000"
43+
volumes:
44+
- [YOUR_CONTENT_DIRECTORY]:/home/koyomi/lanraragi/content
45+
- [YOUR_THUMBNAIL_DIRECTORY]:/home/koyomi/lanraragi/content/thumb
46+
- [YOUR_DATABASE_DIRECTORY]:/home/koyomi/lanraragi/database
47+
restart: unless-stopped
48+
```
49+
{% endhint %}
50+
3351
The content directory you have to specify in the command above will contain archives you either upload through the software or directly drop in, alongside generated thumbnails.
3452
The database directory houses the LANraragi database(As database.rdb), allowing you to hotswap containers without losing any data.
3553

0 commit comments

Comments
 (0)