Changes for page How to setup an XWiki docker container
Last modified by Alexandru Pentilescu on 2023/06/25 18:56
From version 52.1
edited by Alexandru Pentilescu
on 2022/06/12 08:31
on 2022/06/12 08:31
Change comment:
There is no comment for this version
To version 57.1
edited by Alexandru Pentilescu
on 2022/06/15 23:11
on 2022/06/15 23:11
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -54,12 +54,13 @@ 54 54 # --------------------------------------------------------------------------- 55 55 version: '2' 56 56 networks: 57 - bridge:57 + internal_xwiki_network: 58 58 driver: bridge 59 59 services: 60 60 # The container that runs XWiki + Tomcat 61 61 web: 62 62 image: "xwiki:lts-mariadb-tomcat" 63 + restart: always 63 63 container_name: xwiki-mariadb-tomcat-web 64 64 depends_on: 65 65 - db ... ... @@ -78,11 +78,12 @@ 78 78 volumes: 79 79 - ./data/xwiki-data:/usr/local/xwiki 80 80 networks: 81 - internal_xwiki_network :82 - ipv4_address: 192.168.80.382 + - internal_xwiki_network 83 + 83 83 # The container that runs the database (mariadb) 84 84 db: 85 85 image: "mariadb:10.5" 87 + restart: always 86 86 container_name: xwiki-mariadb-db 87 87 # - We provide a xwiki.cnf file in order to configure the mysql db to support UTF8 and be case-insensitive 88 88 # We have to do it here since we use an existing image and that's how this image allows customizations. ... ... @@ -103,16 +103,8 @@ 103 103 - MYSQL_PASSWORD=${DB_PASSWORD} 104 104 - MYSQL_DATABASE=${DB_DATABASE} 105 105 networks: 106 - internal_xwiki_network: 107 - ipv4_address: 192.168.80.4 108 + - internal_xwiki_network 108 108 109 -networks: 110 - internal_xwiki_network: 111 - driver: bridge 112 - ipam: 113 - driver: default 114 - config: 115 - - subnet: 192.168.80.0/24 116 116 {{/code}} 117 117 118 118 There are many different configurations you can use to have an XWiki server. For one, mariadb is NOT required to install XWiki, it's simply one of many database solutions that XWiki is compatible with. Alternatively, you may use MySQL or even PostgreSQL, instead. To see docker-compose configuration options for those, please reference the full official docker reference guide for XWiki at the "External references" section of this page for more details. **Keep in mind, though, in case you do decide to use an alternative to mariadb, to download a different init.sql file than the one mentioned in the previous step!** ... ... @@ -133,7 +133,6 @@ 133 133 134 134 Please replace <database_password> and <mysql_root_password> with randomly generated long strings, preferrably containing a long sequence of lowercase, uppercase letters, digits and symbols. In my case, I chose 12 character long sequences for each of them. It's unlikely for a hacker to compromise your docker environment but it's still best practice to make the passwords as long and hard to guess as possible, as an extra layer of security. 135 135 136 - 137 137 = First run of the container = 138 138 139 139 The first run is always the scariest. Start up the docker image and wait for everything to initialize: ... ... @@ -302,4 +302,4 @@ 302 302 303 303 [[Official docker guide for installing XWiki>>https://github.com/xwiki/xwiki-docker/blob/master/README.md]] 304 304 [[How to setup an Nginx reverse proxy and also provide a global X.509 certificate for it>>https://wiki.pentilescu.com/bin/view/Guides/How%20to%20setup%20an%20Nginx%20reverse%20proxy%20and%20also%20provide%20a%20global%20X.509%20certificate%20for%20it/]] 305 -How to setup a postfix SMTP server [NOTYET WRITTEN]298 +[[How to setup a postfix SMTP server>>https://wiki.pentilescu.com/bin/view/Guides/How%20to%20setup%20a%20postfix%20SMTP%20server/]]