lasthourcloud/templates/compose/docmost.yaml

59 lines
1.5 KiB
YAML
Raw Normal View History

2024-07-04 16:38:16 +00:00
# documentation: https://docmost.com/docs/
# slogan: Open-source collaborative wiki and documentation software
# tags: documentation, opensource, wiki, confluence, knowledge-base, notion, realtime-collaboration, notion-alternative
# logo: svgs/docmost.png
# port: 3000
services:
docmost:
2024-07-15 10:58:29 +00:00
image: "docmost/docmost:latest"
2024-07-04 16:38:16 +00:00
depends_on:
2024-07-15 10:58:29 +00:00
postgresql:
condition: service_healthy
redis:
condition: service_healthy
2024-07-04 16:38:16 +00:00
environment:
- SERVICE_FQDN_DOCMOST_3000
- APP_SECRET=$SERVICE_BASE64_APPKEY
- APP_URL=$SERVICE_FQDN_DOCMOST_3000
2024-07-15 10:58:29 +00:00
- DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql/docmost?schema=public
- REDIS_URL=redis://redis:6379
2024-07-04 16:38:16 +00:00
volumes:
2024-07-15 10:58:29 +00:00
- "docmost:/app/data/storage"
2024-07-04 16:38:16 +00:00
healthcheck:
test:
- CMD
- curl
2024-07-15 10:58:29 +00:00
- "-f"
- "http://127.0.0.1:3000"
2024-07-04 16:38:16 +00:00
interval: 2s
timeout: 10s
2024-07-15 10:58:29 +00:00
retries: 20
postgresql:
image: "postgres:16-alpine"
2024-07-04 16:38:16 +00:00
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DB=docmost
volumes:
2024-07-15 10:58:29 +00:00
- "postgresql-data:/var/lib/postgresql/data"
2024-07-04 16:38:16 +00:00
healthcheck:
test:
- CMD-SHELL
2024-07-15 10:58:29 +00:00
- "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
2024-07-04 16:38:16 +00:00
interval: 5s
2024-07-15 10:58:29 +00:00
timeout: 10s
retries: 20
2024-07-04 16:38:16 +00:00
redis:
2024-07-15 10:58:29 +00:00
image: "redis:7.2-alpine"
2024-07-04 16:38:16 +00:00
volumes:
2024-07-15 10:58:29 +00:00
- "redis-data:/data"
2024-07-04 16:38:16 +00:00
healthcheck:
test:
- CMD
- redis-cli
- PING
2024-07-15 10:58:29 +00:00
interval: 5s
2024-07-04 16:38:16 +00:00
timeout: 10s
2024-07-15 10:58:29 +00:00
retries: 20