67 lines
1.8 KiB
Django/Jinja
67 lines
1.8 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
services:
|
|
etherpad:
|
|
image: git.opnxng.com/opnxng/etherpad:latest
|
|
container_name: etherpad
|
|
security_opt:
|
|
- no-new-privileges
|
|
depends_on:
|
|
- etherpaddb
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Singapore
|
|
- DB_TYPE=postgres
|
|
- DB_HOST=etherpaddb
|
|
- DB_PORT=5432
|
|
- DB_NAME=etherpad
|
|
- DB_USER={{ etherpad_db_user }}
|
|
- DB_PASS={{ etherpad_db_pass }}
|
|
- ADMIN_PASSWORD={{ etherpad_admin_password }}
|
|
- TITLE=Notes
|
|
- SKIN_VARIANTS="super-light-toolbar super-light-editor light-background"
|
|
- DEFAULT_PAD_TEXT=Text
|
|
- PAD_OPTIONS_NO_COLORS=true
|
|
- PAD_OPTIONS_SHOW_CONTROLS=true
|
|
- PAD_OPTIONS_SHOW_CHAT=false
|
|
- PAD_OPTIONS_SHOW_LINE_NUMBERS=false
|
|
- PAD_OPTIONS_USE_MONOSPACE_FONT=false
|
|
- PAD_OPTIONS_USER_NAME=false
|
|
- PAD_OPTIONS_USER_COLOR=false
|
|
- SOCKETIO_MAX_HTTP_BUFFER_SIZE=1000000000
|
|
- MAX_AGE=99999999
|
|
- MINIFY=false
|
|
- PAD_OPTIONS_ALWAYS_SHOW_CHAT=false
|
|
- PAD_OPTIONS_CHAT_AND_USERS=false
|
|
# - PAD_OPTIONS_RTL=false
|
|
# - PAD_OPTIONS_LANG=null
|
|
ports:
|
|
- 8891:9001
|
|
restart: unless-stopped
|
|
networks:
|
|
- etherpad
|
|
|
|
etherpaddb:
|
|
image: postgres:17-alpine
|
|
container_name: etherpaddb
|
|
security_opt:
|
|
- no-new-privileges
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Singapore
|
|
- POSTGRES_DB=etherpad
|
|
- POSTGRES_USER={{ etherpad_db_user }}
|
|
- POSTGRES_PASSWORD={{ etherpad_db_pass }}
|
|
volumes:
|
|
- {{ docker_dir }}/etherpad/postgres:/var/lib/postgresql/data
|
|
- {{ docker_dir }}/etherpad/backups:/backups
|
|
- {{ docker_dir }}/etherpad/dump:/dump
|
|
restart: unless-stopped
|
|
networks:
|
|
- etherpad
|
|
|
|
networks:
|
|
etherpad:
|
|
name: etherpad
|