Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make data volume persistent? #2

Open
kamilmirza opened this issue Sep 13, 2019 · 3 comments
Open

how to make data volume persistent? #2

kamilmirza opened this issue Sep 13, 2019 · 3 comments

Comments

@kamilmirza
Copy link

as in official documentation, I am adding host folders to following:

/var/lib/tomcat
/var/lib/postgresql
/var/log/tomcat
/var/log/postgresql

when I try to add my host folders, the container does not build WAR file and it stay there
here's the docker log: docker.log

but when I run the docker command WITHOUT volumes, it works fine

here's my docker command:
docker run -it \
--name axelor \
-p 8080:80 \
-v /axelor/log/tomcat:/var/log/tomcat \
-v /axelor/log/postgresql/:/var/log/postgresql \
-v /axelor/lib/tomcat:/var/lib/tomcat \
-v /axelor/lib/postgresql/:/var/lib/postgresql \
axelor/aio-erp

@maovidal
Copy link

It's been quite a while since you post this @kamilmirza
However in case it helps someone dealing with this, or to find the cause of the problem, I've managed to make it work adding all those host folders you mention except: /axelor/lib/tomcat:/var/lib/tomcat

@bsikander
Copy link

Any update on this issue?
Not mounting volume to host is not a good solution.

@daufinsyd
Copy link

daufinsyd commented Jan 6, 2021

Hi there,
I found a post in the forum using /var/lib/tomcat/axelor ; it works (but don't know if it is even useful; the folder is empty).

Sympatron pushed a commit to Sympatron/axelor-docker that referenced this issue Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants