mirror of
https://github.com/wallabag/docker
synced 2025-12-13 17:56:31 +00:00
changed docs for persistent storage of images. #71
This commit is contained in:
@@ -42,7 +42,7 @@ $ docker run -p 80:80 wallabag/wallabag
|
|||||||
and point your browser to `http://localhost:80`. For persistent storage you should start the container with a volume:
|
and point your browser to `http://localhost:80`. For persistent storage you should start the container with a volume:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -v /opt/wallabag:/var/www/wallabag/data -p 80:80 wallabag/wallabag
|
$ docker run -v /opt/wallabag/data:/var/www/wallabag/data -v -/opt/wallabag/images:/var/www/wallabag/web/assets/images -p 80:80 wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
## MariaDB / MySQL
|
## MariaDB / MySQL
|
||||||
@@ -109,12 +109,14 @@ services:
|
|||||||
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
|
volumes:
|
||||||
|
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=wallaroot
|
- MYSQL_ROOT_PASSWORD=wallaroot
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/wallabag:/var/lib/mysql
|
- /opt/wallabag/data:/var/lib/mysql
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user