patching up to run on podman on my local mac.
This commit is contained in:
parent
96d2aeae19
commit
76a03cda57
|
@ -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: "*"
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue