I just installed CryptPad in docker-compose and everything works wonderfully, however reading the documentation it mentions that to add an administrator user I have to:
Copy their public key found in User Menu (avatar at the top right) > Settings > Account > Public Signing Key
Paste this key in cryptpad/config/config.js in the following array (uncomment and replace the placeholder): . . . . .
The problem is that in my docker-compose.yml volumes I don't have cryptpad/config/config.js
I have it in an environment variable that came with the GitHub compose:
CPAD_CONF=/cryptpad/config/config.js
Although I can enter docker to modify the config.js from there, I suppose it will be overwritten when I update to a new version (I think so)
I tried to add the cryptpad/config/config.js volume to my docker compose and repull my image but the container did not start the log it sends an error message that says
Sed could not edit : not a regular file
mentioning the config.js file
The question is the docker-compose configuration that came in github did not have the /cryptpad/config/config.js volume, is it some error or was it simply omitted for that example? Is there a way to add that volume without the aforementioned error? or do I have to destroy the entire container with the images and volumes?
My docker-compose:
version: '3.8'
services:
  cryptpad:
    image: "cryptpad/cryptpad:version-5.5.0"
    hostname: cryptpad
    environment:
      - CPAD_MAIN_DOMAIN=https://your-main-domain.com
      - CPAD_SANDBOX_DOMAIN=https://your-sandbox-domain.com
      - CPAD_CONF=/cryptpad/config/config.js
    volumes:
      - ./data/blob:/cryptpad/blob
      - ./data/block:/cryptpad/block
      - ./customize:/cryptpad/customize
      - ./data/data:/cryptpad/data
      - ./data/files:/cryptpad/datastore
    ports:
      - "3000:3000"
      - "3001:3001"
      - "3003:3003"
    ulimits:
      nofile:
        soft: 1000000
        hard: 1000000
Thank you very much and greetings