Save seafile-data info in volume
This commit is contained in:
parent
4dcac70520
commit
310eb9028c
@ -20,4 +20,6 @@ RUN chmod +x /seafile-client/start.py && \
|
|||||||
chown seafile:seafile -R /seafile-client && \
|
chown seafile:seafile -R /seafile-client && \
|
||||||
su - seafile -c "seaf-cli init -d /seafile-client"
|
su - seafile -c "seaf-cli init -d /seafile-client"
|
||||||
|
|
||||||
|
VOLUME /seafile-client/seafile-data
|
||||||
|
|
||||||
CMD ["./start.py"]
|
CMD ["./start.py"]
|
||||||
|
|||||||
@ -19,7 +19,11 @@ services:
|
|||||||
- SEAFILE_UID=<your_uid>
|
- SEAFILE_UID=<your_uid>
|
||||||
- SEAFILE_GID=<your_gid>
|
- SEAFILE_GID=<your_gid>
|
||||||
volumes:
|
volumes:
|
||||||
|
- seafile-data:/seafile-client/seafile-data
|
||||||
- <host-volume-path>:/data
|
- <host-volume-path>:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
seafile-data:
|
||||||
```
|
```
|
||||||
|
|
||||||
Inside container libraries' content will be put in `/data` directory, so map your host directory to it.
|
Inside container libraries' content will be put in `/data` directory, so map your host directory to it.
|
||||||
|
|||||||
@ -12,4 +12,9 @@ services:
|
|||||||
- SEAFILE_UID=<your_uid>
|
- SEAFILE_UID=<your_uid>
|
||||||
- SEAFILE_GID=<your_gid>
|
- SEAFILE_GID=<your_gid>
|
||||||
volumes:
|
volumes:
|
||||||
|
- seafile-data:/seafile-client/seafile-data
|
||||||
- /home/johndow/seafile:/data
|
- /home/johndow/seafile:/data
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
seafile-data:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user