Refactor Docker setup and migrate to PostgreSQL
Streamlined Dockerfiles with clearer ENV variables and build args. Switched backend database from MySQL to PostgreSQL, updated configurations accordingly, and added robust Docker Compose services for better orchestration, including health checks and persistent storage.
This commit is contained in:
10
backend/config_prod.json
Normal file
10
backend/config_prod.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"ssl_cert_path": "/app/backend/ssl/mx-aare-test.psi.ch.pem",
|
||||||
|
"ssl_key_path": "/app/backend/ssl/mx-aare-test.psi.ch.key",
|
||||||
|
"OPENAPI_URL": "https://mx-aare-test.psi.ch:1492/openapi.json",
|
||||||
|
"SCHEMA_PATH": "/app/src/openapi.json",
|
||||||
|
"OUTPUT_DIRECTORY": "/app/openapi",
|
||||||
|
"PORT": 1492,
|
||||||
|
"SSL_KEY_PATH": "/app/backend/ssl/mx-aare-test.psi.ch.key",
|
||||||
|
"SSL_CERT_PATH": "/app/backend/ssl/mx-aare-test.psi.ch.pem"
|
||||||
|
}
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"ssl_cert_path": "ssl/mx-aare-test.psi.ch.pem",
|
|
||||||
"ssl_key_path": "ssl/mx-aare-test.psi.ch.key",
|
|
||||||
"OPENAPI_URL": "https://mx-aare-test.psi.ch:1492/openapi.json",
|
|
||||||
"SCHEMA_PATH": "./src/openapi.json",
|
|
||||||
"OUTPUT_DIRECTORY": "./openapi",
|
|
||||||
"PORT": 1492,
|
|
||||||
"SSL_KEY_PATH": "/home/jungfrau/aaredb/backend/ssl/mx-aare-test.psi.ch.key",
|
|
||||||
"SSL_CERT_PATH": "/home/jungfrau/aaredb/backend/ssl/mx-aare-test.psi.ch.pem"
|
|
||||||
}
|
|
Reference in New Issue
Block a user