This Docker Compose set builds upon the Enonic XP image from enonic/xp-app
and includes the superhero module from https://github.com/enonic/module-superhero-blog downloaded from the official enonic repository. Do use another version of enonic XP, please change the baseimage tag in Dockerfile
To build the service, clone this repo
git clone https://github.com/enonic-io/docker-compose-enonic-xp-superhero
cd docker-compose-enonic-xp-superhero
To configure the Instance automaticly, use the configure.sh script and replace "my-server.hostname.com" with your servers hostname. This will configure vhosts for both apache and Enonic XP.
./configure.sh my-server.hostname.com
Now, build the container set with docker-compose
docker-compose build
To run the application, simply run the following command after building the image as described above
$ docker-compose up -d
To redeploy changes to in the Enonic XP installation, just redeploy the affected containers ( and not the storage container ).
$ docker-compose build exp apache2
$ docker-compose up --no-deps -d exp apache2
- Using Docker-compose in production: https://docs.docker.com/compose/production/