dreamproit / billtitles-py

Service to get bills, titles and bills related by title (using FastAPI); see also billtitles in Go
MIT License
1 stars 1 forks source link

Use .env file to define postgres url #19

Closed aih closed 2 years ago

aih commented 2 years ago

The goal is to use an .env file to define the postgresurl in the docker-compose.py. This requires a change in the billtitles Dockerfile, to accept the variables that are passed.

My initial attempt to do this, in the envfile branch (d59180c8b0d) has this error when I run docker-compose up:

 connection to server at "localhost", port 5432 failed: Connection refused
        Is the server running on that host and accepting TCP/IP connections?
aih commented 2 years ago

Working with PR #20