Provide docker run command with persistent data

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
Adrian Nöthlich 2020-05-07 12:19:29 +02:00
parent fabbdd03be
commit 35c5e24425
No known key found for this signature in database
GPG key ID: CBA6B4E35D326EFE

View file

@ -20,8 +20,9 @@ Please see the [migration guide](MIGRATION.md) for further information on switch
* Run: `docker run -d -p 3000:3000 -p 3001:3001 promasu/cryptpad`
* Run with customizations: `docker run -d -p 3000:3000 -p 3001:3001 -v customize:/cryptpad/customize promasu/cryptpad`
* Run with configuration: `docker run -d -p 3000:3000 -p 3001:3001 -v config.js:/cryptpad/config/config.js promasu/cryptpad`
* Run with persistent data: `docker run -d -p 3000:3000 -p 3001:3001 -v data/blob:/cryptpad/blob -v data/block:/cryptpad/block -v customize:/cryptpad/customize -v data/data:/cryptpad/data -v data/files:/cryptpad/datastore promasu/cryptpad`
### Docker-compose
* Run: `docker-compose up`
* Run with traefik2 labels: `docker-compose -f docker-compose.yml -f traefik2.yml up`
* Run with traefik2 labels: `docker-compose -f docker-compose.yml -f traefik2.yml up`