Discussion:
[Mayan EDMS: 2474] Trouble installing Mayan EDMS 3.0
(too old to reply)
Junior Vidotti
2018-05-25 21:36:11 UTC
Permalink
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
image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
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
#image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
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:
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Steve Putman
2018-05-26 18:55:09 UTC
Permalink
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.
Post by Junior Vidotti
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
------------------------------
version: "3.4"
container_name: mayan-edms-app-2
image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
- "db2"
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: db2
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_PASSWORD: mypass
MAYAN_DATABASE_USER: mayan
- "8000:8000"
- app:/var/lib/mayan
- mayan-2
image: healthcheck/postgres
container_name: mayan-edms-db-2
POSTGRES_DB: mayan
POSTGRES_PASSWORD: mypass
POSTGRES_USER: mayan
- db:/var/lib/postgresql/data
- mayan-2
name: mayan-db-2
name: mayan-data-2
------------------------------
version: "3.4"
container_name: mayan-edms-app
image: mayanedms/mayanedms:2.7.3
#image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
- "db"
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: db
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_PASSWORD: q9tj96crx9
MAYAN_DATABASE_USER: mayan
- "80:80"
- app:/var/lib/mayan
- mayan
image: healthcheck/postgres
container_name: mayan-edms-db
POSTGRES_DB: mayan
POSTGRES_PASSWORD: q9tj96crx9
POSTGRES_USER: mayan
- db:/var/lib/postgresql/data
- mayan
name: mayan-db
name: mayan-data
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Junior Vidotti
2018-05-26 22:34:30 UTC
Permalink
Nice!! It worked.
Post by Steve Putman
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.
Post by Junior Vidotti
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
------------------------------
version: "3.4"
container_name: mayan-edms-app-2
image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
- "db2"
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: db2
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_PASSWORD: mypass
MAYAN_DATABASE_USER: mayan
- "8000:8000"
- app:/var/lib/mayan
- mayan-2
image: healthcheck/postgres
container_name: mayan-edms-db-2
POSTGRES_DB: mayan
POSTGRES_PASSWORD: mypass
POSTGRES_USER: mayan
- db:/var/lib/postgresql/data
- mayan-2
name: mayan-db-2
name: mayan-data-2
------------------------------
version: "3.4"
container_name: mayan-edms-app
image: mayanedms/mayanedms:2.7.3
#image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
- "db"
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: db
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_PASSWORD: q9tj96crx9
MAYAN_DATABASE_USER: mayan
- "80:80"
- app:/var/lib/mayan
- mayan
image: healthcheck/postgres
container_name: mayan-edms-db
POSTGRES_DB: mayan
POSTGRES_PASSWORD: q9tj96crx9
POSTGRES_USER: mayan
- db:/var/lib/postgresql/data
- mayan
name: mayan-db
name: mayan-data
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roberto Rosario
2018-05-30 17:35:15 UTC
Permalink
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.
Post by Junior Vidotti
Nice!! It worked.
Post by Steve Putman
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.
Post by Junior Vidotti
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
------------------------------
version: "3.4"
container_name: mayan-edms-app-2
image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
- "db2"
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: db2
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_PASSWORD: mypass
MAYAN_DATABASE_USER: mayan
- "8000:8000"
- app:/var/lib/mayan
- mayan-2
image: healthcheck/postgres
container_name: mayan-edms-db-2
POSTGRES_DB: mayan
POSTGRES_PASSWORD: mypass
POSTGRES_USER: mayan
- db:/var/lib/postgresql/data
- mayan-2
name: mayan-db-2
name: mayan-data-2
------------------------------
version: "3.4"
container_name: mayan-edms-app
image: mayanedms/mayanedms:2.7.3
#image: registry.gitlab.com/mayan-edms/mayan-edms:feature-docker
- "db"
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
MAYAN_DATABASE_HOST: db
MAYAN_DATABASE_NAME: mayan
MAYAN_DATABASE_PASSWORD: q9tj96crx9
MAYAN_DATABASE_USER: mayan
- "80:80"
- app:/var/lib/mayan
- mayan
image: healthcheck/postgres
container_name: mayan-edms-db
POSTGRES_DB: mayan
POSTGRES_PASSWORD: q9tj96crx9
POSTGRES_USER: mayan
- db:/var/lib/postgresql/data
- mayan
name: mayan-db
name: mayan-data
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...