eu-federation-gateway-service / efgs-federation-gateway

The goal of this project is to develop the official European solution for the interoperability between national backend servers of decentralised contact tracing applications to combat COVID-19.
Apache License 2.0
59 stars 25 forks source link

Add Postgres Example to community branch #259

Closed ubamrein closed 3 years ago

ubamrein commented 3 years ago

Since the EFGS does not officially support postgres, we split https://github.com/eu-federation-gateway-service/efgs-federation-gateway/pull/257 into a database-agnostic fix, which removed the duplication of autoIncrement, and this PR, a postgres specific one.

In this PR we add the postgres connector to the POM.xml, splitted the docker-compose.yml to allow the use of shared docker files and added a basic example application-psql.yml, which exposes the psql profile to spring.

In order to build and run the docker-compose with postgres use docker-compose -f docker-compose.yml -f docker-compose.psql.yml up --build.