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"
In your docker-compose.yml you're configuring the postgres with password 'xwik', but in hibernate.cfg.xml you're using 'xwiki'. I guess it shouldn't be that way?