mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-14 17:25:03 +00:00
35 lines
769 B
YAML
35 lines
769 B
YAML
---
|
|
version: '3.8'
|
|
|
|
services:
|
|
cryptpad:
|
|
image: "promasu/cryptpad:nginx"
|
|
hostname: cryptpad
|
|
|
|
environment:
|
|
- CPAD_MAIN_DOMAIN=example.com
|
|
- CPAD_SANDBOX_DOMAIN=sandbox.example.com
|
|
# Traefik can't use HTTP2 to communicate with cryptpad_websocket
|
|
# A workaround is to disable HTTP2 in Nginx
|
|
- CPAD_HTTP2_DISABLE=true
|
|
|
|
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
|
|
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
|
|
expose:
|
|
- "80"
|
|
- "443"
|
|
|
|
ulimits:
|
|
nofile:
|
|
soft: 1000000
|
|
hard: 1000000
|