From 733303036f1c273fcfb90046e2c600cd2c7c3844 Mon Sep 17 00:00:00 2001 From: Ruslan Bel'kov Date: Sat, 23 Nov 2024 18:46:53 +0300 Subject: [PATCH] chore: use settings for docker --- backend/settings.docker.yaml | 5 +++++ docker-compose.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 backend/settings.docker.yaml diff --git a/backend/settings.docker.yaml b/backend/settings.docker.yaml new file mode 100644 index 0000000..e7b8b76 --- /dev/null +++ b/backend/settings.docker.yaml @@ -0,0 +1,5 @@ +$schema: "./settings.schema.yaml" +app_root_path: "/api" +environment: development +database_uri: "mongodb://mongoadmin:secret@db:27017/db?authSource=admin" # Database URL, f.e. "mongodb://mongoadmin:secret@localhost:27017/db?authSource=admin" +session_secret_key: "very-secret-key" # use `openssl rand -hex 32` to generate a random key diff --git a/docker-compose.yaml b/docker-compose.yaml index 272c324..db571c0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,7 +17,7 @@ services: dockerfile: Dockerfile restart: always volumes: - - "./backend/settings.yaml:/code/settings.yaml:ro" # Read-only settings file + - "./backend/settings.docker.yaml:/code/settings.yaml:ro" # Read-only settings file depends_on: db: condition: service_started