nomadro/apps/work/docker-compose.yml
Eric 2b574f7957 Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI.
Secondary-dev Next UI with DnD, labels, stopwatch, archive, activity; pads with revisions; README documents pnpm dev:work-api.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 01:06:26 +08:00

99 lines
3.2 KiB
YAML

# Nomadro remote work — Planka + Etherpad (US .com / local)
# Docs: apps/work/README.md
# Upstream: fetch-upstream.mjs → overlay → compose
name: nomadro-work
services:
planka-db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: planka
POSTGRES_USER: planka
POSTGRES_PASSWORD: ${PLANKA_DB_PASSWORD:?set PLANKA_DB_PASSWORD}
volumes:
- planka_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U planka -d planka"]
interval: 10s
timeout: 5s
retries: 8
planka:
image: ghcr.io/plankanban/planka:latest
restart: unless-stopped
depends_on:
planka-db:
condition: service_healthy
ports:
- "${PLANKA_PORT:-1337}:1337"
environment:
BASE_URL: ${PLANKA_BASE_URL:-http://127.0.0.1:1337}
DATABASE_URL: postgresql://planka:${PLANKA_DB_PASSWORD}@planka-db:5432/planka
SECRET_KEY: ${PLANKA_SECRET_KEY:?set PLANKA_SECRET_KEY}
DEFAULT_ADMIN_EMAIL: ${DEFAULT_ADMIN_EMAIL:-hackrobot@nomadro.com}
DEFAULT_ADMIN_PASSWORD: ${DEFAULT_ADMIN_PASSWORD:?set DEFAULT_ADMIN_PASSWORD}
DEFAULT_ADMIN_NAME: ${DEFAULT_ADMIN_NAME:-Nomadro}
TRUST_PROXY: "true"
volumes:
- planka_avatars:/app/public/user-avatars
- planka_bg:/app/public/project-background-images
- planka_attach:/app/private/attachments
# Secondary-dev skin: mount overlay CSS if present
- ./overlay/planka/nomadro-skin.css:/app/public/nomadro-skin.css:ro
etherpad-db:
image: postgres:15-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${DOCKER_COMPOSE_POSTGRES_DATABASE:-etherpad}
POSTGRES_USER: ${DOCKER_COMPOSE_POSTGRES_USER:-etherpad}
POSTGRES_PASSWORD: ${DOCKER_COMPOSE_POSTGRES_PASSWORD:?set DOCKER_COMPOSE_POSTGRES_PASSWORD}
volumes:
- etherpad_db:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${DOCKER_COMPOSE_POSTGRES_USER:-etherpad} -d ${DOCKER_COMPOSE_POSTGRES_DATABASE:-etherpad}",
]
interval: 10s
timeout: 5s
retries: 8
etherpad:
image: etherpad/etherpad:latest
restart: unless-stopped
user: "0:0"
depends_on:
etherpad-db:
condition: service_healthy
ports:
- "${ETHERPAD_PORT:-9001}:9001"
environment:
NODE_ENV: production
ADMIN_PASSWORD: ${DOCKER_COMPOSE_APP_ADMIN_PASSWORD:?set DOCKER_COMPOSE_APP_ADMIN_PASSWORD}
DB_TYPE: postgres
DB_HOST: etherpad-db
DB_PORT: 5432
DB_NAME: ${DOCKER_COMPOSE_POSTGRES_DATABASE:-etherpad}
DB_USER: ${DOCKER_COMPOSE_POSTGRES_USER:-etherpad}
DB_PASS: ${DOCKER_COMPOSE_POSTGRES_PASSWORD}
DEFAULT_PAD_TEXT: ${DOCKER_COMPOSE_APP_DEFAULT_PAD_TEXT:-Welcome to Nomadro Pads}
TRUST_PROXY: ${DOCKER_COMPOSE_APP_TRUST_PROXY:-true}
TITLE: Nomadro Pads
volumes:
- etherpad_plugins:/opt/etherpad-lite/src/plugin_packages
- etherpad_var:/opt/etherpad-lite/var
- ./overlay/etherpad/pad.css:/opt/etherpad-lite/src/static/custom/pad.css:ro
volumes:
planka_db:
planka_avatars:
planka_bg:
planka_attach:
etherpad_db:
etherpad_plugins:
etherpad_var: