update code for local use

This commit is contained in:
Maks Snegov 2019-04-11 18:44:45 +03:00
parent 4d09cbf5a7
commit 7206f51702
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
version: '2'
version: '3'
services:
seafile-client:
restart: always
image: gronis:seafile-client-docker
build: .
container_name: seafile-client
environment:
- LIBRARY_ID=<your-library-id-here>
@ -11,5 +11,7 @@ services:
- USERNAME=<username>
- PASSWORD=<password>
- DATA_DIR=<directory-path-to-sync>
- SEAFILE_UID=<your_uid>
- SEAFILE_GID=<your_gid>
volumes:
- <host-volume-path>:<directory-path-to-sync>

View File

@ -3,6 +3,7 @@
set -e
set -u
set -o pipefail
set -x
DATA_DIR="${DATA_DIR:-/data}"
SEAFILE_UID="${SEAFILE_UID:-1000}"