mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-11-14 02:02:02 +00:00
Merge pull request #35 from Haiti-Distributed-Healthcare-System/feature/dockerize_react_app_t14
Feature/dockerize react app t14
This commit is contained in:
4 files changed
+48
-2
No files matched your search
@@ -1,2 +1,19 @@
|
||||
# hdhs
|
||||
Haiti Distributed Healthcare System
|
||||
<p align="center">
|
||||
<a href="https://www.chihaiti.org/"><img align="center" width="160" height="160" src="https://i.imgur.com/02fwcFL.png"></a>
|
||||
<h2 align="center">Haiti Community Health Initiative Application</h2>
|
||||
</p>
|
||||
<p align="center">
|
||||
A containerized progressive web application paired with patient data management tooling built to serve the <a href="https://www.chihaiti.org/">Haiti Community Health Initiative</a> in their mission to help form healthy and self-directed communities in Haiti.
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
|
||||
The application runs on docker, which can be installed [here](https://docs.docker.com/install/).
|
||||
If you're a linux user, you'll also need to install [docker-compose](https://docs.docker.com/compose/install/) separately. Otherwise, it's included in the Mac and PC versions of "Docker Desktop"
|
||||
|
||||
- The PWA and accompanying database can be started by running the command `docker-compose up` from the root directory.
|
||||
- `docker-compose down` will then stop the docker processes from running in the background.
|
||||
- Once the images have been built and the processes started, the PWA can be seen at your localhost, at the port specified in [docker-compose.yml](https://github.com/Haiti-Distributed-Healthcare-System/hdhs/blob/dev/docker-compose.yml).
|
||||
- More tips to troubleshoot docker are available [here](https://github.com/Haiti-Distributed-Healthcare-System/hdhs/wiki/Using-Docker).
|
||||
@@ -0,0 +1,11 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
pwa:
|
||||
build:
|
||||
context: ./pwa
|
||||
volumes:
|
||||
- ./pwa/:/app
|
||||
ports:
|
||||
- "3000:3000"
|
||||
container_name: haiti_pwa
|
||||
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
npm-debug.log*
|
||||
@@ -0,0 +1,16 @@
|
||||
FROM node:12.10.0
|
||||
|
||||
COPY package*.json ./data/
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
RUN npm install
|
||||
|
||||
ENV PATH /data/node_modules/.bin:$PATH
|
||||
|
||||
COPY . /data/app
|
||||
WORKDIR /data/app
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
Reference in new issue
Block a user