From 76a03cda573f415c7dd1de64823037dc683bf98b Mon Sep 17 00:00:00 2001 From: Steve White Date: Thu, 24 Oct 2024 09:17:36 -0500 Subject: [PATCH] patching up to run on podman on my local mac. --- config/config_local.yaml | 8 ++++++++ docker-compose.yml | 4 ++-- podman_run.bash | 12 ++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 config/config_local.yaml create mode 100644 podman_run.bash diff --git a/config/config_local.yaml b/config/config_local.yaml new file mode 100644 index 0000000..6c2776c --- /dev/null +++ b/config/config_local.yaml @@ -0,0 +1,8 @@ +database_path: "data/boxes.db" +test_database_path: "data/test_database.db" +jwt_secret: "super_secret_key" +image_storage_dir: "images/" +listening_port: 8080 +log_file: "boxes.log" +static_files_dir: "build/" +allowed_origins: "*" diff --git a/docker-compose.yml b/docker-compose.yml index 9b15883..a596df6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,8 @@ version: '3.3' # Specify the Docker Compose file version services: boxes-api: - image: boxes-api:latest # Use the existing boxes-api image - container_name: boxes-api # Name the container + image: localhost/boxes-api:latest # Use the existing boxes-api image + #container_name: boxes-api # Name the container ports: - "8080:8080" # Map host port 8080 to container port 8080 environment: diff --git a/podman_run.bash b/podman_run.bash new file mode 100644 index 0000000..b75cec1 --- /dev/null +++ b/podman_run.bash @@ -0,0 +1,12 @@ + +podman run -d \ + --name boxes-api \ + -p 8080:8080 \ + -e BOXES_API_CONFIG=/app/config/config.yaml \ + -v ./data:/app/data \ + -v ./images:/app/images \ + -v ./config:/app/config \ + -v ./build:/app/build \ + --network boxes_app-network \ + localhost/boxes-api:latest +