diff --git a/src/main.cpp b/src/main.cpp index bc3f1ea..d82fa0c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,7 +26,8 @@ std::filesystem::path get_config_path() { std::vector config_paths = { "/data/sos_config.json", _home / ".config/simple_object_storage/config.json", - _exe / ".." / ".test" / "config.json" + _exe / ".." / ".test" / "config.json", + "/testing/sos_config.json" }; for (const auto& path : config_paths) { diff --git a/testing/compose.yaml b/testing/compose.yaml index ecae826..ff04e60 100644 --- a/testing/compose.yaml +++ b/testing/compose.yaml @@ -5,7 +5,7 @@ services: ports: - 7703:7703 volumes: - - ./config.json:/data/sos_config.json + - ./config.json:/testing/sos_config.json:ro restart: no healthcheck: test: ["CMD", "wget", "-qO-", "http://127.0.0.1:7703/status"]