Files
docmost-port/compose.yaml.hbs

44 lines
1.4 KiB
Handlebars
Raw Normal View History

2025-05-06 20:16:30 +00:00
services:
{{app_id}}-docmost:
image: docmost/docmost:0.20.4
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:17.4
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/data
{{#unless (eq entitlements.os "windows")}}
user: {{entitlements.uid}}:{{entitlements.gid}}
{{/unless}}
logging:
driver: local
{{app_id}}-redis:
image: redis:8.0.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