How to map docker volumes in aio

Hello

I’m running the axelor/aio-erp image in a local bare-metal kubernetes cluster. Using docker as a container.
When I try to map the path /var/lib/postgresql to an NFS share volume I get an error:

chown: changing ownership of '/var/lib/postgresql/9.6/main': Invalid argument

Even if I try to map the volume to the local node it gives the same error.

How do I map the postgresql volume? (or any of the volumes mentioned in the documentation)
Are there any other steps I should be aware of?

Source:
https://docs.axelor.com/abs/5.0/install/docker.html

Steps to reproduce:

  1. Run axelor/aio-erp as a docker image
  2. Bind mount volume(s): local/path:/var/lib/postgresql
  3. See above error « chown… »

it’s not maintained now, and postgres 9 is also outdated better use latest versions

if you have kubernetes cluster I can help to setup even cicd pipeline

Ok, thanks for the answer.

I’m just trying (testing) out Axelor on my local k3s - so no need to help me.
At least now I know that the docker version is not maintained.

Even though you said no help required but just sharing for reference

if you already have postgres container, you can try the following, you need to update application.properties after container is up and restart

FROM tomcat:8.5.59-jdk8-adoptopenjdk-hotspot
RUN apt-get update && apt-get install -y wget
RUN wget -c -P /usr/local/tomcat/webapps/ https://github.com/axelor/open-suite-webapp/releases/download/v6.0.2/axelor-erp-v6.0.2.war -O /usr/local/tomcat/webapps/ROOT.war

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.