This example deploys Mayan EDMS with Docker Compose in a minimal but production-oriented layout.
sudo mkdir -p /opt/mayan-edms
cd /opt/mayan-edms
docker-compose.ymlservices:
mayan:
image: mayanedms/mayanedms:s4
container_name: mayan-edms
restart: unless-stopped
ports:
- "8000:8000"
environment:
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: postgres
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_USER: mayan
MAYAN_DATABASE_PASSWORD: change-me
MAYAN_CELERY_BROKER_URL: redis://redis:6379/0
depends_on:
- postgres
- redis
volumes:
- ./mayan/media:/var/lib/mayan
postgres:
image: postgres:16
container_name: mayan-postgres
restart: unless-stopped
environment:
POSTGRES_DB: mayan
POSTGRES_USER: mayan
POSTGRES_PASSWORD: change-me
volumes:
- ./postgres/data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: mayan-redis
restart: unless-stopped
docker compose up -d
http://SERVER_IP:8000 or your reverse-proxy URL.Any questions?
Feel free to contact us. Find all contact information on our contact page.