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

View File

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