etherpad/docker-compose.yml

58 lines
2.3 KiB
YAML
Raw Permalink Normal View History

services:
app:
2024-04-17 20:50:21 +02:00
user: "0:0"
2024-06-10 14:34:17 +02:00
#image: etherpad/etherpad:latest
build:
context: .
args:
ETHERPAD_PLUGINS: ep_headings2 ep_delete_empty_pads
target: production
tty: true
stdin_open: true
volumes:
2024-04-17 20:50:21 +02:00
- plugins:/opt/etherpad-lite/src/plugin_packages
- etherpad-var:/opt/etherpad-lite/var
depends_on:
- postgres
environment:
2024-04-17 20:50:21 +02:00
NODE_ENV: production
ADMIN_PASSWORD: ${DOCKER_COMPOSE_APP_ADMIN_PASSWORD:-admin}
DB_CHARSET: ${DOCKER_COMPOSE_APP_DB_CHARSET:-utf8mb4}
DB_HOST: postgres
2024-04-17 20:50:21 +02:00
DB_NAME: ${DOCKER_COMPOSE_POSTGRES_DATABASE:-etherpad}
DB_PASS: ${DOCKER_COMPOSE_POSTGRES_PASSWORD:-admin}
DB_PORT: ${DOCKER_COMPOSE_POSTGRES_PORT:-5432}
DB_TYPE: "postgres"
2024-04-17 20:50:21 +02:00
DB_USER: ${DOCKER_COMPOSE_POSTGRES_USER:-admin}
# For now, the env var DEFAULT_PAD_TEXT cannot be unset or empty; it seems to be mandatory in the latest version of etherpad
2024-06-10 14:34:17 +02:00
DEFAULT_PAD_TEXT: "pad.nolog.cz is provided with love by NoLog.cz. Please consider supporting us at https://nolog.cz/support\nData in pad.nolog.cz are not encrypted and can be accessed just by knowing the URL. Use cryptpad.cz for any confidential information (it's also run by us at NoLog.cz)."
TITLE: "pad.nolog.cz"
2024-04-17 20:50:21 +02:00
DISABLE_IP_LOGGING: ${DOCKER_COMPOSE_APP_DISABLE_IP_LOGGING:-false}
SOFFICE: ${DOCKER_COMPOSE_APP_SOFFICE:-null}
TRUST_PROXY: ${DOCKER_COMPOSE_APP_TRUST_PROXY:-true}
2024-06-10 14:34:17 +02:00
ETHERPAD_PLUGINS: "ep_headings2 ep_delete_empty_pads"
restart: always
ports:
2024-04-17 20:50:21 +02:00
- "${DOCKER_COMPOSE_APP_PORT_PUBLISHED:-9001}:${DOCKER_COMPOSE_APP_PORT_TARGET:-9001}"
postgres:
image: postgres:15-alpine
environment:
2024-04-17 20:50:21 +02:00
POSTGRES_DB: ${DOCKER_COMPOSE_POSTGRES_DATABASE:-etherpad}
POSTGRES_PASSWORD: ${DOCKER_COMPOSE_POSTGRES_PASSWORD:-admin}
POSTGRES_PORT: ${DOCKER_COMPOSE_POSTGRES_PORT:-5432}
POSTGRES_USER: ${DOCKER_COMPOSE_POSTGRES_USER:-admin}
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
# Exposing the port is not needed unless you want to access this database instance from the host.
# Be careful when other postgres docker container are running on the same port
# ports:
# - "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/pgdata
volumes:
2024-04-17 20:50:21 +02:00
postgres_data:
plugins:
etherpad-var: