fix: docmost template
This commit is contained in:
parent
793e6d19eb
commit
a7b5157fa6
@ -6,58 +6,53 @@
|
||||
|
||||
services:
|
||||
docmost:
|
||||
image: 'docmost/docmost:latest'
|
||||
image: "docmost/docmost:latest"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- SERVICE_FQDN_DOCMOST_3000
|
||||
- APP_SECRET=$SERVICE_BASE64_APPKEY
|
||||
- APP_URL=$SERVICE_FQDN_DOCMOST_3000
|
||||
- 'DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@db/docmost?schema=public'
|
||||
- 'REDIS_URL=redis://redis:6379'
|
||||
restart: unless-stopped
|
||||
- DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql/docmost?schema=public
|
||||
- REDIS_URL=redis://redis:6379
|
||||
volumes:
|
||||
- 'docmost:/app/data/storage'
|
||||
- "docmost:/app/data/storage"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:3000'
|
||||
- "-f"
|
||||
- "http://127.0.0.1:3000"
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 30
|
||||
db:
|
||||
image: 'postgres:16-alpine'
|
||||
retries: 20
|
||||
postgresql:
|
||||
image: "postgres:16-alpine"
|
||||
environment:
|
||||
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||
- POSTGRES_DB=docmost
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- 'db_data:/var/lib/postgresql/data'
|
||||
- "postgresql-data:/var/lib/postgresql/data"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
|
||||
- "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
redis:
|
||||
image: 'redis:7.2-alpine'
|
||||
restart: unless-stopped
|
||||
image: "redis:7.2-alpine"
|
||||
volumes:
|
||||
- 'redis_data:/data'
|
||||
- "redis-data:/data"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- PING
|
||||
interval: 30s
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
volumes:
|
||||
docmost: null
|
||||
db_data: null
|
||||
redis_data: null
|
||||
retries: 20
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user