patching up to run on podman on my local mac.

This commit is contained in:
Steve White 2024-10-24 09:17:36 -05:00
parent 96d2aeae19
commit 76a03cda57
3 changed files with 22 additions and 2 deletions

8
config/config_local.yaml Normal file
View File

@ -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: "*"

View File

@ -2,8 +2,8 @@ version: '3.3' # Specify the Docker Compose file version
services: services:
boxes-api: boxes-api:
image: boxes-api:latest # Use the existing boxes-api image image: localhost/boxes-api:latest # Use the existing boxes-api image
container_name: boxes-api # Name the container #container_name: boxes-api # Name the container
ports: ports:
- "8080:8080" # Map host port 8080 to container port 8080 - "8080:8080" # Map host port 8080 to container port 8080
environment: environment:

12
podman_run.bash Normal file
View File

@ -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