Docker on Ubuntu.
My yml file:
version: '2'
networks:
bridge:
driver: bridge
services:
web:
# Use an already built XWiki image from DockerHub.
image: "xwiki:11.1-postgres-tomcat"
container_name: xwiki-postgres-tomcat-web
depends_on:
- db
ports:
- "8080:8080"
# The DB_USER/DB_PASSWORD/DB_HOST variables are used in the hibernate.cfg.xml file.
environment:
- DB_USER=xwiki
- DB_PASSWORD=XXXXXX
- DB_DATABASE=xwiki
- DB_HOST=xwiki-postgres-db
# Provide a name instead of an auto-generated id for the xwiki permanent directory configured in the Dockerfile,
# to make it simpler to identify in 'docker volume ls'.
volumes:
- xwiki-data:/usr/local/xwiki
networks:
- bridge
# The container that runs PostgreSQL
db:
image: "postgres:9.5"
container_name: xwiki-postgres-db
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_ROOT_PASSWORD=XXXXXX
- POSTGRES_PASSWORD=XXXXXX
- POSTGRES_USER=xwiki
- POSTGRES_DB=xwiki
- POSTGRES_INITDB_ARGS="--encoding=UTF8"
networks:
- bridge
volumes:
postgres-data: {}
xwiki-data: {}
But, after I do a docker-compose up -d, I get the following in a browser:
HTTP Status 500 – Internal Server Error
Type Exception Report
Message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://my.domain.com/bin/distribution/XWiki/Distribution?xredirect=%2Fbin%2Fview%2FMain%2F]
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL
I also see this error in the docker logs:
Root error: [MappingNotFoundException: resource: activitystream.hbm.xml not found]