Sign inSign up

juanmms/gnuhealth-postgres

By juanmms

Updated almost 3 years ago

Postgres for GNU Health image

Image
0

123

juanmms/gnuhealth-postgres repository overview

This image works in parallel with the "juanmms/gnuhealth:v1.0" image, the latter being the GNU Health image with SAO included. The correct thing to do is to have these two images in a YML file for their 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 easily create custom modules. Remembering that you must manually create the volume folder in your facilities for it to work, below I will leave you a functional YML example, 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:d23e12513

Size

87.8 MB

Last updated

almost 3 years ago

docker pull juanmms/gnuhealth-postgres:v1.0