Repository navigation
Description
SOLVED: A user on reddit r/selfhosted advised me to add my docmost and cloudflared tunnel containers to the same network then adjust the public hostname to docmost:3000. It worked!
I have successfully launched Docmost via Docker. Below I've pasted my docker compose file (I replaced my secret and dbpass here, they are different in my actual compose file). I also screenshotted my cloudflare tunnel public hostname setup with the subdomain I want to use. Cloudflare automatically makes all http into https. I have websockets enabled in Cloudflare for my domain. Yet, when I attempt to access Docmost through the domain, it doesn't connect. I can access Docmost fine through http://192.168.1.116:3000.
I have not been able to find any info on this issue; any help would be greatly appreciated. Also, worth noting, I've set up a handful of other locally hosted sites and apps using my Cloudflare tunnel, so it's definitely something that has to do specifically with Docmost settings. Let me know! Thanks.
services:
docmost:
image: docmost/docmost:latest
depends_on:
- db
- redis
environment:
APP_URL: 'https://docs.intothesavvyverse.us'
APP_SECRET: 'MYSECRET'
DATABASE_URL: 'postgresql://docmost:DBPASS@db:5432/docmost?schema=public'
REDIS_URL: 'redis://redis:6379'
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- docmost:/app/data/storage
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: docmost
POSTGRES_USER: docmost
POSTGRES_PASSWORD: MYPASS
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:7.2-alpine
restart: unless-stopped
volumes:
- redis_data:/data
volumes:
docmost:
db_data:
redis_data:

Activity