Due to offical docker build is well supported. End this project. https://github.com/xwiki-contrib/docker-xwiki
This xwiki image is working with the postgres.
docker-compose.yml can be found in https://github.com/lavadiablo/docker-xwiki/blob/master/docker-compose.yml
- execute "docker pull postgres:latest"
- execute "docker pull lavadiablo\docker-xwiki:latest"
- modify the docker-compose.yml for your setting
- execute "docker-compose up -d"