{"id":21044917,"url":"https://github.com/opusvl/gnuhealth-docker","last_synced_at":"2025-03-13T22:11:38.141Z","repository":{"id":148071937,"uuid":"411220148","full_name":"OpusVL/gnuhealth-docker","owner":"OpusVL","description":"GNU Health Docker Container Set","archived":false,"fork":false,"pushed_at":"2021-09-28T17:06:54.000Z","size":17,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T17:35:03.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpusVL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-28T09:37:58.000Z","updated_at":"2023-09-22T23:18:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"6614269b-5c9d-453d-9d3a-357334a2e0b0","html_url":"https://github.com/OpusVL/gnuhealth-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fgnuhealth-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fgnuhealth-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fgnuhealth-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2Fgnuhealth-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpusVL","download_url":"https://codeload.github.com/OpusVL/gnuhealth-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243489835,"owners_count":20299001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T14:19:08.933Z","updated_at":"2025-03-13T22:11:38.126Z","avatar_url":"https://github.com/OpusVL.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GNU Health\n\n[https://en.wikibooks.org/wiki/GNU_Health](https://en.wikibooks.org/wiki/GNU_Health)\n\n[https://www.gnuhealth.org/download.html](https://www.gnuhealth.org/download.html)\n\n## Docker Container Set Build\n\nThe container set for the `docker-compose.yml` uses a build process from `./build`\n\n### Service Components\n\nCreate the images using:\n\n```shell\ndocker-compose build\ndocker-compose pull\n```\n\n#### gnuhealth\n\nThe build process uses the slim version of the python Docker image. It adds in the necessary components to run the `gnuhealth-setup` script - which takes care of the the remainder of the install.\n\nBy mounting the config file `trytond.conf` into the image we are able to set the necessary credentials for the service to access the `db` container.\n\nCreate a file `.password` owned/accessible by uid 1000 that contains the password for the admin user, eg.\n\n```shell\necho SecretKey \u003e .password\nsudo chown 1000:1000 .password\n```\n\nThe build process mimics the install [instructions](https://en.m.wikibooks.org/wiki/GNU_Health/Installation).\n\nBring up the container set and watch the logs.\n\n```shell\ndocker-compose up -d \u0026\u0026 docker-compose logs -f\n```\n\nInitialise the database and admin user using:\n\n```shell\ndocker-compose exec gnuhealth bash -c /home/gnuhealth/init.sh\n```\n\nBy default this listens on TCP port 8000 for web and 8080 for webdav, according to the config file. I have exposed both ports and these are able to be mapped to using the `$PORTBASE` variable - by default I've set the it to `80` which maps the ports to the same as the container (8000 and 8080). This can be easily changes to anything within the TCP port range by setting the portbase, eg.\n\n```shell\nPORTBASE=123\n```\n\nWould result in the container being accessed via port 12300 and 12380 respectively.\n\n#### db\n\nThis is a PostgreSQL v12 instance using the official `postgres:12-alpine` container.\n\nThe `init-db.sh` script creates the `gnuhealth` user/role sets the password and creates the `gnuhealth` database - owned by the new user.\n\n## Install the Client Locally\n\nInstall and run the client.\n\n```shell\npip3 install --user --upgrade gnuhealth-client\ngnuhealth-client\n```\n\nConnect using the server name and port you specified (eg. `server:12300`) with the user `admin` and the password you put in the `.password` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Fgnuhealth-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopusvl%2Fgnuhealth-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Fgnuhealth-docker/lists"}