Mirth: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 83: Line 83:
sudo apt install icedtea-netx
sudo apt install icedtea-netx
apt search icedtea-netx
apt search icedtea-netx
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
sudo apt install libcanberra-gtk-module
apt search libcanberra-gtk-module
</syntaxhighlight>
</syntaxhighlight>


Line 90: Line 96:
javaws ~/Downloads/webstart.jnlp
javaws ~/Downloads/webstart.jnlp
</syntaxhighlight>
</syntaxhighlight>
| valign="top" |


|-
|-

Revision as of 12:55, 9 June 2024

Docker Stack

mkdir -p ~/Documents/mirth-playground/
cd       ~/Documents/mirth-playground/

docker-compose -f stack.yml up   -d
docker-compose -f stack.yml logs -f
docker-compose -f stack.yml down

# onboarding
    open  http://172.17.0.3:8080 &>/dev/null &
xdg-open  http://172.17.0.3:8080 &>/dev/null &

# dashboard
    open https://172.17.0.3:8443 &>/dev/null &
xdg-open https://172.17.0.3:8443 &>/dev/null &

# page: https://172.17.0.3:8443
# user: admin
# pass: admin


docker exec -it mirth_apps bash
docker exec -it mirth_apps ls -lah
docker exec -it mirth_apps ps -aux
docker exec -it mirth_apps ls -lah ..
docker exec -it mirth_apps java -version

docker exec -it mirth_psql bash
docker exec -it mirth_psql psql -Umirthdb
SELECT * FROM person_password;
SELECT * FROM configuration;
SELECT * FROM schema_info;
SELECT * FROM person;
SELECT * FROM event;
cat << YML | tee ~/Documents/mirth-playground/stack.yml >/dev/null
version: "3.1"
services:
  mc:
    image: nextgenhealthcare/connect
    container_name: mirth_apps
    platform: linux/amd64
    environment:
      - DATABASE=postgres
      - DATABASE_URL=jdbc:postgresql://db:5432/mirthdb
      - DATABASE_MAX_CONNECTIONS=20
      - DATABASE_USERNAME=mirthdb
      - DATABASE_PASSWORD=mirthdb
      - DATABASE_MAX_RETRY=2
      - DATABASE_RETRY_WAIT=10000
      - KEYSTORE_STOREPASS=docker_storepass
      - KEYSTORE_KEYPASS=docker_keypass
      - VMOPTIONS=-Xmx512m
    ports:
      - 8080:8080/tcp
      - 8443:8443/tcp
    depends_on:
      - db
  db:
    image: postgres
    container_name: mirth_psql
    environment:
      - POSTGRES_USER=mirthdb
      - POSTGRES_PASSWORD=mirthdb
      - POSTGRES_DB=mirthdb
    expose:
      - 5432
YML

Playground

sudo apt install icedtea-netx
apt search icedtea-netx
sudo apt install libcanberra-gtk-module
apt search libcanberra-gtk-module
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
javaws ~/Downloads/webstart.jnlp

References