Skip to content

Commit 61e073f

Browse files
committed
added docker compose to mount local image file
1 parent ccda1de commit 61e073f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.idea/LGSM-WebGUI.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.8'
2+
3+
services:
4+
flask-app:
5+
build:
6+
context: . # Build the image using the Dockerfile in the current directory
7+
volumes:
8+
- ${USER_IMAGES_PATH}:/app/static/images # Use an environment variable for the local images path
9+
ports:
10+
- "5000:5000" # Map container port to local port
11+
restart: always

0 commit comments

Comments
 (0)