DHIS2 40-1 with Docker

Team,

Anyone guide of DHIS2-40-1 with Docker, using Blank Database?

I am also looking for a detailed guide using docker instance please

1 Like

Hi @kwebihaf welcome back! :slight_smile:
And Hi @drajwath, welcome to the community… :tada:

You can have a look at this guide:

  1. First set up the environment
  2. Then run DHIS2 on Docker

Type Docker-Compose.yml for Blank Database

version: '3'
services:
  db:
    image: mdillon/postgis:10-alpine
    command: postgres -c max_locks_per_transaction=100
    environment:
      POSTGRES_USER: dhis
      POSTGRES_DB: dhis2
      POSTGRES_PASSWORD: dhis
  web:
    image: dhis2/core:2.40.1
    volumes:
    - ./config/dhis2_home/dhis.conf:/DHIS2_home/dhis.conf
    ports:
    - "8080:8080"
    depends_on:
    - db

With Error setup if Docker.

1 Like

Hi @kwebihaf

Are you running this on Windows? If so you might want to use the Windows Subsystem for Linux and run all the commands in your WSL terminal including the nodejs and yarn as well as d2 installation.

@Gassim I use Linux Ubuntu 16.04 TS

Linux should work… Is it possible that there are more logs? Additionally are you using Docker Compose? Why no use the regular DHIS2 Docker images?