From 96d2aeae190bd51d4afb60eca14adb496a8889e0 Mon Sep 17 00:00:00 2001 From: stwhite Date: Wed, 23 Oct 2024 12:51:43 -0500 Subject: [PATCH] Added docker-compose file to start service --- docker-compose.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9b15883 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +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 + ports: + - "8080:8080" # Map host port 8080 to container port 8080 + environment: + BOXES_API_CONFIG: "/app/config/config.yaml" # Set the CONFIG environment variable + volumes: + - /home/stwhite/dockerboxes/boxes-api/data:/app/data # Mount host data directory + - /home/stwhite/dockerboxes/boxes-api/images:/app/images # Mount host images directory + - /home/stwhite/dockerboxes/boxes-api/config:/app/config # Mount host config directory + - /home/stwhite/dockerboxes/boxes-api/build:/app/build + networks: + - app-network + + +networks: + app-network: + driver: bridge