Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pmanko authored Aug 19, 2021
1 parent 45ef60b commit f8ceba7
Showing 1 changed file with 3 additions and 42 deletions.
45 changes: 3 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,5 @@
# iSantePlus Docker Image
This repository is responsible for building the "ghcr.io/isanteplus/isanteplus" Docker image and the isanteplus mysql database image ghcr.io/isanteplus/isanteplus-mysql.
# iSantePlus DB Docker Image
This repository is responsible for building the isanteplus mysql database image.

## Usage

### Build and Publish iSantePlus Image
```sh
docker-compose build --no-cache isanteplus
docker tag <image hash> ghcr.io/isanteplus/isanteplus:<version>
docker tag <image hash> ghcr.io/isanteplus/isanteplus:latest
docker push ghcr.io/isanteplus/isanteplus:latest
docker push ghcr.io/isanteplus/isanteplus:<version>
```

### Use Published Image - Docker Compose

`docker-compose.yml`
```json
isanteplus-demo:
container_name: isanteplus-demo
hostname: isanteplus-demo
image: ghcr.io/isanteplus/isanteplus:latest
restart: unless-stopped
env_file:
- ./openmrs/isanteplus_demo/openmrs-server.env
volumes:
- openmrs-data:/openmrs/data
networks:
- sedish
```

`openmrs-server.env`
```
OMRS_JAVA_MEMORY_OPTS=-Xmx2048m -Xms1024m -XX:NewSize=128m
OMRS_CONFIG_CONNECTION_SERVER=
OMRS_CONFIG_CREATE_DATABASE_USER=false
OMRS_CONFIG_CREATE_TABLES=true
OMRS_CONFIG_ADD_DEMO_DATA=false
OMRS_CONFIG_CONNECTION_URL=
OMRS_CONFIG_HAS_CURRENT_OPENMRS_DATABASE=true
OMRS_JAVA_SERVER_OPTS=-Dfile.encoding=UTF-8 -server -Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Djava.awt.headlesslib=true
OMRS_CONFIG_CONNECTION_USERNAME=
OMRS_CONFIG_CONNECTION_PASSWORD=
```
See the `docker-compose.yml` file for an example use of this image.

0 comments on commit f8ceba7

Please sign in to comment.