This repository provides the adopted stack for running customized image with single docker-compose up
command.
The original version of the image with technical notes: https://github.com/janeczku/docker-dropbox
Run the next commands:
# After cloning repository and `cd` into it.
echo "USER_NAME=$(whoami)">.env
docker-compose up -d
Currently Portainer doesn't support build & restart commands in case of adding stack via GIT repository, that's why deploy can be done only manually.
- Create
.env
file and set up the name of the current user. Example of the file: .env
USER_NAME=user
- Launch stack (building of the appropriate image is performed automatically)
docker-compose up -d
Several variables can be passed via .env
file, or alternatively directly set to the docker-compose.yml
.
USER_NAME (required)
The name of the current user. Can be determined with whoami
.
DBOX_UID
Run Dropbox with a custom user ID (matching the owner of the mounted files). Default: 1000
.
DBOX_GID
Run Dropbox with a custom group id (matching the group of the mounted files). Default: 1000
.
DBOX_SKIP_UPDATE
Set this to True
to skip updating to the latest Dropbox version on container start. Default: False
.
Were done next changes:
- Dockerfile with corresponded scripts are moved to the
image/
directory. - Docker-composer.yml file is provided, so the stack can be launched within the Portainer (
Stacks > Add Stack > Build method: Git Repository
). - Updates to a Dockerfile (GnuPG dependencies and replacement of the key-service with working one).