mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-25 06:15:04 +00:00
35 lines
768 B
YAML
35 lines
768 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 cryptpat_websocket
|
|
# A workaroung is disabling 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
|