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:
9
configuration/base.yaml
Normal file
9
configuration/base.yaml
Normal 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
2
configuration/local.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
application:
|
||||
host: 127.0.0.1
|
||||
2
configuration/production.yaml
Normal file
2
configuration/production.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
application:
|
||||
host: 0.0.0.0
|
||||
Reference in New Issue
Block a user