Sign inSign up

guilhermebigois/postgres4protheus

By guilhermebigois

โ€ขUpdated 18 days ago

Dockerized PostgreSQL for TOTVS Protheus development environments

Image
Developer tools
Databases & storage
1

481

guilhermebigois/postgres4protheus repository overview

Docker logo โ 

โ PostgreSQL for TOTVS Protheus

A Dockerized PostgreSQL database configured for use with the TOTVS Protheus ERP.

Docker Hubโ  ยท Issues and improvementsโ 

Contributors โ  Forks โ  Stars โ  Issues โ  MIT License โ 

โ About

PostgreSQL for TOTVS Protheus running

This image is built from the official PostgreSQL Docker imageโ  and follows the database settings required by TOTVS Protheus. The initialization scripts create a Protheus database with:

  • WIN1252 encoding
  • C collation
  • C character type

These settings are based on the TOTVS documentation for supported databasesโ .

โ Purpose

Setting up a Protheus development environment can be difficult for developers who are starting with ADVPL or learning how the ERP runs on Linux and Docker. This project provides a reproducible PostgreSQL container so that the database layer can be started with fewer manual setup steps.

โ Prerequisites

  • Docker with Docker Compose
  • The system requirements required by your Docker installation

If Docker is not installed yet, refer to the official Docker installation documentationโ .

โ Running locally

Clone the repository and start the database:

git clone https://github.com/bigois/postgres4protheus.git
cd postgres4protheus
docker compose up -d

The container exposes PostgreSQL on port 5432.

To follow the startup logs:

docker compose logs -f postgres

To stop the container:

docker compose down

โ Configuration

The Compose file defines the PostgreSQL password and the values used to create the Protheus database. Review and replace these values before using the container outside a local study environment:

VariablePurpose
POSTGRES_PASSWORDPassword for the PostgreSQL superuser.
PROTHEUS_DBUSERUser created for the Protheus database.
PROTHEUS_DBPASSWORDPassword for the Protheus database user.
PROTHEUS_DBNAMEName of the Protheus database.

The initialization script applies the Protheus values to init.sql before PostgreSQL starts for the first time.

โ License

This project is licensed under the MIT Licenseโ .

Tag summary

Content type

Image

Digest

sha256:9394b3258โ€ฆ

Size

172.3 MB

Last updated

18 days ago

docker pull guilhermebigois/postgres4protheus