--- 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