Trouble installing Mayan EDMS 3.0

213 views
Skip to first unread message

Junior Vidotti

unread,
May 25, 2018, 5:36:11 PM5/25/18
to Mayan EDMS
Items are misplaced when configuring a 3.0 installation using Docker Compose (see attached picture).

What am I doing wrong?

Thanks in advance,

Junior Vidotti

------------------------------
Docker-Compose for 3.0:

version: "3.4"

services:
  mayan-edms-2: 
    container_name: mayan-edms-app-2
    depends_on:
      - "db2"
    environment:
      MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
      MAYAN_DATABASE_HOST: db2
      MAYAN_DATABASE_NAME: mayan
      MAYAN_DATABASE_PASSWORD: mypass
      MAYAN_DATABASE_USER: mayan
    ports: 
      - "8000:8000"
    volumes:
      - app:/var/lib/mayan
    networks:
      - mayan-2

  db2:
    image: healthcheck/postgres
    container_name: mayan-edms-db-2
    environment:
      POSTGRES_DB: mayan
      POSTGRES_PASSWORD: mypass
      POSTGRES_USER: mayan
    volumes:
      - db:/var/lib/postgresql/data
    networks:
      - mayan-2

volumes:
  db:
    name: mayan-db-2
  app:
    name: mayan-data-2

networks:
  mayan-2:

------------------------------
Docker-Compose for 2.7.3:

version: "3.4"

services:
  mayan-edms: 
    container_name: mayan-edms-app
    image: mayanedms/mayanedms:2.7.3
    depends_on:
      - "db"
    environment:
      MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
      MAYAN_DATABASE_HOST: db
      MAYAN_DATABASE_NAME: mayan
      MAYAN_DATABASE_PASSWORD: q9tj96crx9
      MAYAN_DATABASE_USER: mayan
    ports: 
      - "80:80"
    volumes:
      - app:/var/lib/mayan
    networks:
      - mayan

  db:
    image: healthcheck/postgres
    container_name: mayan-edms-db
    environment:
      POSTGRES_DB: mayan
      POSTGRES_PASSWORD: q9tj96crx9
      POSTGRES_USER: mayan
    volumes:
      - db:/var/lib/postgresql/data
    networks:
      - mayan

volumes:
  db:
    name: mayan-db
  app:
    name: mayan-data

networks:
  mayan:

mayan-edms.png

Steve Putman

unread,
May 26, 2018, 2:55:09 PM5/26/18
to Mayan EDMS
You might try the versions:next build instead of feature:docker -- I wasn't getting the static files to work properly until yesterday's build.

Junior Vidotti

unread,
May 26, 2018, 6:34:31 PM5/26/18
to Mayan EDMS
Nice!! It worked. 

Roberto Rosario

unread,
May 30, 2018, 1:35:15 PM5/30/18
to Mayan EDMS
Instead of including the javascript libraries in the Docker image or Python package, Mayan now downloads these at install time. Size and license issues prompted this change. There are no good or complete NPM (node package manager) implementations for Python so we had to build our own from scratch (https://gitlab.com/mayan-edms/mayan-edms/blob/versions/next/mayan/apps/common/javascript.py). We've found inconsistencies and undocumented uses of the NPM API and are adjusting our code to match these via reverse engineer of NPM javascript code.  That is why static files sometimes fail to install and thus not be served. We haven't encounter a major problem with this for weeks and managed to implement the versioning system of the Package.json files. 
Reply all
Reply to author
Forward
0 new messages