From 09f8f4ccec745a2d391788afb95ef3ef6428d07f Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 20 Jan 2025 05:02:23 -0600 Subject: [PATCH] add custom docker-compose file --- files/etherpad/docker-compose.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 files/etherpad/docker-compose.yml diff --git a/files/etherpad/docker-compose.yml b/files/etherpad/docker-compose.yml new file mode 100644 index 0000000..b7610a8 --- /dev/null +++ b/files/etherpad/docker-compose.yml @@ -0,0 +1,37 @@ +version: '3.8' + +services: + app: + user: "0:0" + image: etherpad/etherpad:latest + tty: true + stdin_open: true + volumes: + - plugins:/opt/etherpad-lite/src/plugin_packages + - etherpad-var:/opt/etherpad-lite/var + env_file: + - .env + environment: + NODE_ENV: production + ADMIN_PASSWORD: ${DOCKER_COMPOSE_APP_ADMIN_PASSWORD:-admin} + DB_CHARSET: ${DOCKER_COMPOSE_APP_DB_CHARSET:-utf8mb4} + DB_HOST: ${DOCKER_COMPOSE_POSTGRES_HOST:-localhost} + DB_NAME: ${DOCKER_COMPOSE_POSTGRES_DATABASE:-etherpad} + DB_PASS: ${DOCKER_COMPOSE_POSTGRES_PASSWORD:-admin} + DB_PORT: ${DOCKER_COMPOSE_POSTGRES_PORT:-5432} + DB_TYPE: "postgres" + DB_USER: ${DOCKER_COMPOSE_POSTGRES_USER:-admin} + DEFAULT_PAD_TEXT: ${DOCKER_COMPOSE_APP_DEFAULT_PAD_TEXT:- } + DISABLE_IP_LOGGING: ${DOCKER_COMPOSE_APP_DISABLE_IP_LOGGING:-false} + SOFFICE: ${DOCKER_COMPOSE_APP_SOFFICE:-null} + TRUST_PROXY: ${DOCKER_COMPOSE_APP_TRUST_PROXY:-true} + restart: always + ports: + - "${DOCKER_COMPOSE_APP_PORT:-9001}:9001" + +volumes: + plugins: + driver: local + etherpad-var: + driver: local +