fix(docker compose): corrected the data path wording and added a build option in

This commit is contained in:
2025-07-14 21:54:18 -05:00
parent 7bb7df788e
commit cb9e8e1107

View File

@@ -1,21 +1,27 @@
--- ---
services: services:
lst_backend: lst_backend:
# build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory # build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory
image: git.tuffraid.net/cowch/logistics_support_tool:backend-latest build:
container_name: lst_backend # A friendly name for your running container context: .
volumes: dockerfile: ./backend/Dockerfile
- /path/to/frontend/backend:/data image: git.tuffraid.net/cowch/logistics_support_tool:backend-latest
ports: container_name: lst_backend # A friendly name for your running container
- "8080:8080" volumes:
restart: unless-stopped - /path/to/backend/data:/data
ports:
- "8080:8080"
restart: unless-stopped
lst_frontend: lst_frontend:
# build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory # build: . # Tell Docker Compose to build the image using the Dockerfile in the current directory
image: git.tuffraid.net/cowch/logistics_support_tool:frontend-latest build:
container_name: lst_frontend # A friendly name for your running container context: .
volumes: dockerfile: ./frontend/Dockerfile
- /path/to/frontend/data:/data image: git.tuffraid.net/cowch/logistics_support_tool:frontend-latest
ports: container_name: lst_frontend # A friendly name for your running container
- "3120:3000" volumes:
restart: unless-stopped - /path/to/frontend/data:/data
ports:
- "3120:3000"
restart: unless-stopped