Cryptpad, verified and packaged by Elestio
9.5K
Cryptpad is a collaborative office suite that is end-to-end encrypted and open-source.
Deploy a fully managed Cryptpad on elest.io if you want automated backups, reverse proxy with SSL termination, firewall, automated OS & Software updates, and a team of Linux experts and open source enthusiasts to ensure your services are always safe, and functional.
Before deploying a new instance of Cryptpad, you'll have to get two domains:
You can deploy it easily with the following command:
git clone https://github.com/elestio-examples/cryptpad.git
Copy the .env file from tests folder to the project directory
cp ./tests/.env ./.env
Edit the .env file with your own values.
Edit the pass for your cert.pem and key.pem
Create data folders with correct permissions
mkdir -p ./data
mkdir -p ./data/blob
mkdir -p ./data/block
mkdir -p ./data/data
mkdir -p ./data/data/logs
mkdir -p ./data/files
mkdir -p ./customize
chown -R 4001:4001 ./data
chown -R 4001:4001 ./customize
Run the project with the following command
./scripts/preInstall.sh
docker-compose up -d
./scripts/postInstall.sh
You can access the Web UI at: https://your-domain:37443
Here are some example snippets to help you get started creating a container.
version: "3"
services:
cryptpad:
image: elestio/cryptpad:${SOFTWARE_VERSION_TAG}
hostname: cryptpad
restart: always
container_name: cryptpad
environment:
- CPAD_MAIN_DOMAIN=${DOMAIN}
- CPAD_SANDBOX_DOMAIN=sandbox-${DOMAIN}
- CPAD_REALIP_HEADER=X-Forwarded-For
- CPAD_REALIP_RECURSIVE=on
- CPAD_TRUSTED_PROXY=172.0.0.0/8
- CPAD_HTTP2_DISABLE=true
- CPAD_TLS_CERT=/etc/nginx/certs/cert.pem
- CPAD_TLS_KEY=/etc/nginx/certs/key.pem
- CPAD_TLS_DHPARAM=/etc/nginx/dhparam.pem
volumes:
- ./data/blob:/cryptpad/blob
- ./data/block:/cryptpad/block
- ./customize:/cryptpad/customize
- ./data/data:/cryptpad/data
- ./data/files:/cryptpad/datastore
- ./data/config.js:/cryptpad/config/config.js
- /path/to/your/cert.pem:/etc/nginx/certs/cert.pem
- /path/to/your/key.pem:/etc/nginx/certs/key.pem
- ./data/dh.pem:/etc/nginx/dhparam.pem
- ./data/cryptpad.conf:/etc/nginx/conf.d/cryptpad.conf
ports:
- "172.17.0.1:37443:443"
ulimits:
nofile:
soft: 1000000
hard: 1000000
| Variable | Value (example) |
|---|---|
| SOFTWARE_VERSION_TAG | latest |
| ADMIN_EMAIL | [email protected] |
| DOMAIN | your-domain.com |
The Elestio Cryptpad Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:c69b0d9e3…
Size
1.1 GB
Last updated
12 months ago
docker pull elestio/cryptpadPulls:
159
Last week