Skip to content

Commit 5bbb8cd

Browse files
committed
image save works with dockerfile start but not with docker-compose start
1 parent 4c63708 commit 5bbb8cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
version: '3.8' # Specifies the version of the Docker Compose file format
22

33
services:
4-
webgsm-app: # Defines the service named "flask-app"
4+
web-app: # Defines the service named "flask-app"
55
build:
66
context: . # Build the image using the Dockerfile in the current directory
77
dockerfile: Dockerfile # Specifies the name of the Dockerfile (optional if named 'Dockerfile')
8-
volumes:
9-
- ${USER_IMAGES_PATH}:/app/static/images # Mount a local directory (defined by the environment variable) to the container's /app/static/images directory for persistent image storage
108
ports:
119
- "5000:5000" # Map container port 5000 to local port 5000, allowing access to the Flask app from the browser at localhost:5000
1210
restart: always # Ensure the container always restarts if it stops or crashes

0 commit comments

Comments
 (0)