fix: docmost template

This commit is contained in:
Andras Bacsai 2024-07-15 12:58:29 +02:00
parent 793e6d19eb
commit a7b5157fa6
2 changed files with 22 additions and 27 deletions

View File

@ -6,58 +6,53 @@
services: services:
docmost: docmost:
image: 'docmost/docmost:latest' image: "docmost/docmost:latest"
depends_on: depends_on:
- db postgresql:
- redis condition: service_healthy
redis:
condition: service_healthy
environment: environment:
- SERVICE_FQDN_DOCMOST_3000 - SERVICE_FQDN_DOCMOST_3000
- APP_SECRET=$SERVICE_BASE64_APPKEY - APP_SECRET=$SERVICE_BASE64_APPKEY
- APP_URL=$SERVICE_FQDN_DOCMOST_3000 - APP_URL=$SERVICE_FQDN_DOCMOST_3000
- 'DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@db/docmost?schema=public' - DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql/docmost?schema=public
- 'REDIS_URL=redis://redis:6379' - REDIS_URL=redis://redis:6379
restart: unless-stopped
volumes: volumes:
- 'docmost:/app/data/storage' - "docmost:/app/data/storage"
healthcheck: healthcheck:
test: test:
- CMD - CMD
- curl - curl
- '-f' - "-f"
- 'http://127.0.0.1:3000' - "http://127.0.0.1:3000"
interval: 2s interval: 2s
timeout: 10s timeout: 10s
retries: 30 retries: 20
db: postgresql:
image: 'postgres:16-alpine' image: "postgres:16-alpine"
environment: environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES - POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DB=docmost - POSTGRES_DB=docmost
restart: unless-stopped
volumes: volumes:
- 'db_data:/var/lib/postgresql/data' - "postgresql-data:/var/lib/postgresql/data"
healthcheck: healthcheck:
test: test:
- CMD-SHELL - CMD-SHELL
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}' - "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
interval: 5s interval: 5s
timeout: 20s timeout: 10s
retries: 10 retries: 20
redis: redis:
image: 'redis:7.2-alpine' image: "redis:7.2-alpine"
restart: unless-stopped
volumes: volumes:
- 'redis_data:/data' - "redis-data:/data"
healthcheck: healthcheck:
test: test:
- CMD - CMD
- redis-cli - redis-cli
- PING - PING
interval: 30s interval: 5s
timeout: 10s timeout: 10s
retries: 5 retries: 20
volumes:
docmost: null
db_data: null
redis_data: null

File diff suppressed because one or more lines are too long