How to map docker volumes in aio


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?


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 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/ -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.