This commit is contained in:
soraefir
2026-05-09 11:03:58 +02:00
parent 21adca1fbc
commit eafafe876f

View File

@@ -18,7 +18,8 @@ let
ExposedPorts = { "${toString containerCfg.port}/tcp" = {}; }; ExposedPorts = { "${toString containerCfg.port}/tcp" = {}; };
Env = [ Env = [
"NODE_ENV=production" "NODE_ENV=production"
"HOME=/var/lib/etherpad" "HOME=/opt/etherpad-lite/var"
"DB_FILENAME=/opt/etherpad-lite/var/dirty.db"
]; ];
}; };
@@ -43,21 +44,17 @@ in {
ip = containerCfg.ip; ip = containerCfg.ip;
secret = name; secret = name;
extraEnv = { extraEnv = {
NODE_ENV = "production"; "TITLE" = "Pad";
TITLE = "Pad"; "PORT" = toString containerCfg.port;
PORT = toString containerCfg.port; "DB_TYPE" = "postgres";
DB_TYPE = "postgres"; "DB_HOST" = builder.host;
DB_HOST = builder.host; "DB_NAME" = "etherpad_db";
DB_NAME = "etherpad_db"; "DB_USER" = "etherpad_user";
DB_USER = "etherpad_user";
DB_PASS = "ETHERPAD_DB_PASSWORD";
ADMIN_PASSWORD = "ETHERPAD_ADMIN_PASSWORD";
"TRUST_PROXY" = "true"; "TRUST_PROXY" = "true";
DB_CHARSET = "utf8mb4"; "DEFAULT_PAD_TEXT" = "";
DEFAULT_PAD_TEXT = ""; "PAD_OPTIONS_SHOW_LINE_NUMBERS" = "true";
PAD_OPTIONS_SHOW_LINE_NUMBERS = "true"; "PAD_OPTIONS_USE_MONOSPACE_FONT" = "true";
PAD_OPTIONS_USE_MONOSPACE_FONT = "true"; "SKIN_VARIANTS" = "super-dark-toolbar light-editor dark-background";
SKIN_VARIANTS = "super-dark-toolbar light-editor dark-background";
}; };
overrides = { overrides = {
volumes = [ volumes = [