Sign inSign up

juanmms/gnuhealth

By juanmms

Updated over 2 years ago

GNU Health image

Image
0

496

juanmms/gnuhealth repository overview

This image works in parallel with the "juanmms/gnuhealth-postgres:v1.0" image, the latter being the postgres image that will contain the GNU Health database. The correct thing is to have these two images in a YML file for correct functioning. I also recommend creating a volume that points to the trytond.conf file and the modules folder within the container, this to have greater control of the configuration and to be able to create custom modules easily. Emphasizing that you must manually create the volume folder on your premises for it to work, below I will leave you a functional example YML, you can also modify it to your liking.
.........................................................................................................................................
version: '3.3'

services:
gnuhealth:
image: juanmms/gnuhealth:v1.0
ports:
- "8000:8000"
depends_on:
- db
volumes:
- modulos-tryton:/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.36/trytond/modules
- ./trytond.conf:/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf
db:
image: juanmms/gnuhealth-postgres:v1.0
ports:
- "5432:5432"
environment:
- POSTGRES_DB=gnuhealth
- POSTGRES_PASSWORD=123
- POSTGRES_USER=gnuhealth
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./pgdata13:/var/lib/postgresql/data/pgdata

volumes:
modulos-tryton:
driver: local
driver_opts:
type: none
device: ./modulos_tryton
o: bind
.........................................................................................................................................
Without forgetting the trytond.conf file (if you don't have it on hand, create it with these values) The WEB part is essential for the SAO web client to work.
.........................................................................................................................................
[database]
uri = postgresql://gnuhealth:123@db:5432

[web]
listen = *:8000
root=/home/gnuhealth/sao/package

[jsonrpc]
listen = *:8000

[webdav]
listen = *:8080
ssl_webdav = False
.........................................................................................................................................

Tag summary

Content type

Image

Digest

sha256:1ee18cf4e

Size

545.5 MB

Last updated

over 2 years ago

docker pull juanmms/gnuhealth