Files
docmost-port/compose.yaml.hbs
2025-11-24 18:28:08 +00:00

44 lines
1.4 KiB
Handlebars

services:
{{app_id}}-docmost:
image: docmost/docmost:0.23.2
restart: always
environment:
APP_SECRET: {{entitlements.docmost-app-secret}}
DATABASE_URL: postgres://docmost:{{entitlements.postgresql-password}}@{{app_id}}-postgresql/docmost
REDIS_URL: redis://{{app_id}}-redis:6379
volumes:
- {{entitlements.folder-path}}{{#if (eq entitlements.os "windows")}}\\{{else}}/{{/if}}docmost:/app/data/storage
ports:
- {{entitlements.port-number}}:3000
logging:
driver: local
depends_on:
- {{app_id}}-postgresql
- {{app_id}}-redis
{{app_id}}-postgresql:
image: postgres:18.1
restart: always
environment:
POSTGRES_USER: docmost
POSTGRES_PASSWORD: {{entitlements.postgresql-password}}
POSTGRES_DB: docmost
volumes:
- {{entitlements.folder-path}}{{#if (eq entitlements.os "windows")}}\\{{else}}/{{/if}}postgresql:/var/lib/postgresql
{{#unless (eq entitlements.os "windows")}}
user: {{entitlements.uid}}:{{entitlements.gid}}
{{/unless}}
logging:
driver: local
{{app_id}}-redis:
image: redis:8.4.0
restart: always
volumes:
- {{entitlements.folder-path}}{{#if (eq entitlements.os "windows")}}\\{{else}}/{{/if}}redis:/data
{{#unless (eq entitlements.os "windows")}}
user: {{entitlements.uid}}:{{entitlements.gid}}
{{/unless}}
logging:
driver: local