diff --git a/hosted-app-utils b/hosted-app-utils index 6f1a9493..b11cb5b8 160000 --- a/hosted-app-utils +++ b/hosted-app-utils @@ -1 +1 @@ -Subproject commit 6f1a9493c1bdce87a76db53c9d0f9879c5266030 +Subproject commit b11cb5b8c770ff5d325625d87950ac055b71b677 diff --git a/package b/package index e4c54743..bbde6d42 100755 --- a/package +++ b/package @@ -3,7 +3,7 @@ LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" CONFIG=${CONFIG:-${LOCATION}/config.json} -COMPOSE=${COMPOSE:-${LOCATION}/docker-compose.yml} +SRC=${SRC:-${LOCATION}/src} BUILD_DIR=${BUILD_DIR:-${LOCATION}/build-packages} -${LOCATION}/hosted-app-utils/package ${CONFIG} ${COMPOSE} output=${BUILD_DIR} $@ \ No newline at end of file +${LOCATION}/hosted-app-utils/package ${CONFIG} ${SRC} output=${BUILD_DIR} $@ \ No newline at end of file diff --git a/src/app.conf b/src/app.conf new file mode 100644 index 00000000..000eeacb --- /dev/null +++ b/src/app.conf @@ -0,0 +1,30 @@ +{ + "name": "Streamline EMR", + "access": { + "username": "streamline_sysuser", + "password": "82CUF8UftjEx" + }, + "appconfig": { + "blockgraph": { + "district": "StreamlineEmr", + "name": "streamline_emr_config" + } + }, + "dbsync": { + "blockgraph": { + "district": "StreamlineEmr", + "name": "streamline_emr_data" + }, + "database": { + "type": "mysql", + "version": "8.0", + "name": "streamline", + "username": "root", + "password": "streamline", + "db_path": "/var/lib/mysql", + "logs_path": "/var/lib/mysql/logs", + "log_pattern": "bin.[0-9]*", + "source": "mysql-app-db" + } + } +} \ No newline at end of file diff --git a/docker-compose.yml b/src/docker-compose.yml similarity index 92% rename from docker-compose.yml rename to src/docker-compose.yml index b4f8e53a..8bcac24d 100755 --- a/docker-compose.yml +++ b/src/docker-compose.yml @@ -1,13 +1,12 @@ -version: "3.8" services: streamline-emr: image: ${APP_IMAGE:-streamline-emr:latest} container_name: ${APP_CONTAINER:-streamline-emr} + restart: unless-stopped volumes: - "${DATA_DIR:-./data}:/var/lib/mysql" ports: - "${APP_PORT:-3000}:80" - dns: 0.0.0.0 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:80"] timeout: 30s