This project provides a Docker image for running a GNU Health server, configurable through environment variables to connect to a PostgreSQL database server. The project also includes a Docker Compose file to launch two containers of the image, connected to a single PostgreSQL server.
-
Ensure you have Docker and Docker Compose installed on your machine. If not, you can download them from Docker's official website.
-
Clone this repository:
git clone https://github.com/OpenDx28/gnu-health-server-docker.git
- Navigate to the directory:
cd gnu-health-server-docker
- To build the Docker image, run:
docker build -t opendx/gnu_health .
- To start the containers using Docker Compose, run:
docker-compose up -d
- Open GNU Health Client and connect to the host server and port (changes from one instance to another).
The Docker image can be configured using the following environment variables:
DB_NAME
: The name of the database to connect to. Defaults toghs
.DB_USER
: The username to connect to the database with. Defaults tognuhealth
.DB_PASSWORD
: The password to connect to the database with. Defaults tognuhealth
.DB_HOST
: The hostname of the database server. Defaults topostgres
.DEMO_DB
: Set this to 0 for an empty database or 1 for a demo database. Defaults to1
.ADMIN_PASSWORD
: Sets the default password for theadmin
user. Defaults toopendx28
.
You can set these variables in the Docker Compose file.
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.
- Rafael Nebot Medina. ITC-DCCT (Instituto Tecnológico de Canarias - Departamento de Computación)
- Paula Moreno Fajardo. ITC-DCCT
- Luis Falcón. GNU Solidario.
- Gerald Wiese. Leibniz Hannover University
The development of this project has been supported by the Interreg-MAC programme 2014-2020, through the project OpenDx28.