feat(api): containerization

- Build SQLx queries beforehand so that we don't have to do PostgreSQL
init right away at service start up
- Created `Dockerfile.production`
- Updated docs
- Seperate configuration files for local and development environments
This commit is contained in:
2024-05-10 19:38:07 -04:00
parent 7b5fa61780
commit daf914bb8e
9 changed files with 119 additions and 12 deletions

9
configuration/base.yaml Normal file
View File

@@ -0,0 +1,9 @@
application:
port: 8000
host: 0.0.0.0
database:
host: "localhost"
port: 5432
username: "postgres"
password: "password"
database_name: "newsletter"

2
configuration/local.yaml Normal file
View File

@@ -0,0 +1,2 @@
application:
host: 127.0.0.1

View File

@@ -0,0 +1,2 @@
application:
host: 0.0.0.0