# Pro/Contra of xwiki on docker in production?

**URL:** <https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450>\
**Category:** Help / Discuss\
**Tags:** docker\
**Created:** [August 14, 2018, 2:08pm UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450 "2018-08-14T14:08:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AutomationX](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@AutomationX](https://forum.xwiki.org/u/AutomationX)\
**Post date:** [August 14, 2018, 2:08pm UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450/1 "2018-08-14T14:08:56Z")

</div>

Dear community and devs,

i’ve successfully installed the latest xwiki stable on docker ce on a CentOS host, using the stable tomcat postgres image.  
**It works like a charm** , including test-imports of xar backups of production, subwikis, LDAP authentication, …

On [https://www.xwiki.org/xwiki/bin/view/Download/DownloadVersion/?projectVersion=10.6.1](https://www.xwiki.org/xwiki/bin/view/Download/DownloadVersion/?projectVersion=10.6.1) below the Docker Image link you state: “An easy solution to test a full-fledged XWiki, _with a configuration very close to a production setup_.”

Sooo, what **are** the differences / disadvantages of this setup versus an old-school installation using tomcat and postgresql? Is anyone of you running a xwiki production instance on docker?

Any feedback greatly appreciated.  
Thanks, Mario

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [August 15, 2018, 6:03pm UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450/2 "2018-08-15T18:03:07Z")

</div>

> [@AutomationX](#):
>
> Sooo, what **are** the differences / disadvantages of this setup versus an old-school installation using tomcat and postgresql? Is anyone of you running a xwiki production instance on docker?

I’m also interested in the answer to those questions! 🙂

IMO if you know how to run Docker in production then you’re good. This means knowing how to:

- create/restore backups (easy since you only need to save the permanent directory)
- upgrade XWiki (easy again since you just need to point a new docker container to the existing permanent directory)
- monitor docker containers, e.g. restart them if they’re down
- etc

The XWiki docker images are still missing some configuration abilities such as clustering, etc. See [Loading...](https://jira.xwiki.org/projects/XDOCKER/issues/XDOCKER-67?filter=allopenissues)

Thanks  
-Vincent

PS: I’m one of the creators of the Docker images for XWiki

---

<div class="post-metadata">

**Author:** ![watery](https://forum.xwiki.org/user_avatar/forum.xwiki.org/watery/32/4228_2.png) [@watery](https://forum.xwiki.org/u/watery)\
**Post date:** [July 16, 2022, 10:40am UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450/3 "2022-07-16T10:40:08Z")

</div>

Does this still hold in 2022 and the recent XWiki versions? I see there are a lot of open issues in the linked Jira project.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [July 18, 2022, 7:58am UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450/4 "2022-07-18T07:58:18Z")

</div>

Not sure what your question is. If it’s whether the XWiki docker images can be used in production then the answer is: does your infra team knows how to use docker in production? If the answer to that is yes then the answer to the former question is yes too 😉 Basically my answer from above still stands.

Re [open issues](https://jira.xwiki.org/issues/?jql=project%20%3D%20XDOCKER%20and%20resolution%20%3D%20Unresolved%20ORDER%20BY%20created%20DESC), you can check if they affect you. Note that the number of open issues is not a great criteria. With that criteria you wouldn’t use XWiki at all (or any software for that matter ;)). The XWiki platform project has [over 3000 open issues](https://jira.xwiki.org/issues/?jql=project%20%3D%20%22XWIKI%22%20%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20created%20DESC)

---

<div class="post-metadata">

**Author:** ![watery](https://forum.xwiki.org/user_avatar/forum.xwiki.org/watery/32/4228_2.png) [@watery](https://forum.xwiki.org/u/watery)\
**Post date:** [July 21, 2022, 8:27pm UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450/5 "2022-07-21T20:27:07Z")

</div>

> [@vmassol](#):
>
> The XWiki platform project has [over 3000 open issues](https://jira.xwiki.org/issues/?jql=project%20%3D%20%22XWIKI%22%20%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20created%20DESC)

OMG!!

No, seriously. Let me give you an example: suppose a new servlet container comes out, you decide to support it, of course there will be a initial phase where issues will arise that could make Xwiki unstable or however not production-ready (risk of data loss, etc) when deployed inside that servlet container, despite it being very stable in another one.

So, to me at least, Docker is a bit like a new servlet container: while XWiki works perfectly inside, i.e., Tomcat on a regular server, I’m asking whether there are issues that can make XWiki inside Docker less reliable.

E.g. I gave a quick look at Jira and found these that look important:

- [Loading...](https://jira.xwiki.org/browse/XDOCKER-225)
- [Loading...](https://jira.xwiki.org/browse/XDOCKER-209)
- [Loading...](https://jira.xwiki.org/browse/XDOCKER-78)

> [@vmassol](#):
>
> Not sure what your question is. If it’s whether the XWiki docker images can be used in production then the answer is: does your infra team knows how to use docker in production? If the answer to that is yes then the answer to the former question is yes too 😉 Basically my answer from above still stands.

Yes, that was the question. I hope my post clears my point.

---

<div class="post-metadata">

**Author:** ![phisad](https://forum.xwiki.org/user_avatar/forum.xwiki.org/phisad/32/4074_2.png) [@phisad](https://forum.xwiki.org/u/phisad)\
**Post date:** [July 22, 2022, 11:13am UTC](https://forum.xwiki.org/t/pro-contra-of-xwiki-on-docker-in-production/3450/6 "2022-07-22T11:13:48Z")

</div>

We also use the docker-compose setup and it’s actually nice to get started, but there could be better documentation on (what I found a bit confusing):

- how to adjust the available memory for the application (e.g. which env variables to the docker internals: the tomcat ones or the jvm ones or both)
- how to increase the log level or even see application logs in case the startup fails
- there seem to be some configurations that become reset after a restart e.g. some of the notification events (and even the log levels?)
