-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |