This document describes the requirement allowing to easily run dhis2 using docker containers.
Start a terminal, then run:
git clone git://github.com/pgracio/dhis2-docker.git
cd dhis2-docker
docker-compose up -d
Once the container is up, open url http://127.0.0.1:8085 and connect using usernmame admin
and password district
as explained in the dhis2 documentation
When running on Mac OS X or Windows pointing to localhost will fail. It fails because de Docker Host address is not the localhost but instead the address of docker host VM. Run $ docker-machine ip default
to get Docker Host address.
Docker images can be found at Docker Hub
Docker Cloud handles the orchestration of your infrastructure and application containers. The simplest DevOps you'll find without compromising on flexibility, they say...
Docker Cloud supports several providers:
For testing purposes I'm using AWS Free Tier. All you have to do is
- Create AWS Account
- Create Docker Cloud Account or use your Docker ID if you already have one to access Docker Hub.
- Link AWS Account with Docker Cloud
- Create a node
- Create and deploy stack using the following Stack file
database:
image: 'pgracio/dhis2-db:2.21-sierra-leone'
environment:
- PG_DATA=/var/lib/postgresql/data/pgdata
- POSTGRES_DB=dhis
- POSTGRES_PASSWORD=dhis
- POSTGRES_USER=dhis
volumes:
- '/opt/dhis2/database/221-sierra-leone:/var/lib/postgresql/data'
web:
image: 'pgracio/dhis2-web:2.21-tomcat7-jre8'
deployment_strategy: high_availability
environment:
- 'JAVA_OPTS=-Xmx1024m -Xms4000m'
links:
- database
ports:
- '8080'
Please submit bugs and feature requests at https://github.com/pgracio/dhis2-docker/issues
Any other questions contact Paulo Grácio on Twitter at @pjrgracio, email at [email protected]