From 64bd7b007714d45e972e8ab4b0d8a3bbea283f50 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 9 Apr 2025 22:47:14 +0200 Subject: [PATCH] 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. --- backend/config_prod.json | 10 ++++++++++ config_prod.json | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 backend/config_prod.json delete mode 100644 config_prod.json diff --git a/backend/config_prod.json b/backend/config_prod.json new file mode 100644 index 0000000..e5368c4 --- /dev/null +++ b/backend/config_prod.json @@ -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" +} \ No newline at end of file diff --git a/config_prod.json b/config_prod.json deleted file mode 100644 index 71046ea..0000000 --- a/config_prod.json +++ /dev/null @@ -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" -} \ No newline at end of file