You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: '3.8'# Specifies the version of the Docker Compose file format
2
2
3
3
services:
4
-
webgsm-app: # Defines the service named "flask-app"
4
+
web-app: # Defines the service named "flask-app"
5
5
build:
6
6
context: . # Build the image using the Dockerfile in the current directory
7
7
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
10
8
ports:
11
9
- "5000:5000"# Map container port 5000 to local port 5000, allowing access to the Flask app from the browser at localhost:5000
12
10
restart: always # Ensure the container always restarts if it stops or crashes
0 commit comments