2026-01-12 15:23:19 +01:00

13 lines
435 B
YAML

version: '3'
services:
web:
build: . # Build the Docker image from the current directory
working_dir: /code/app
command: sh -c "uvicorn app:app --reload --port=8003 --host=0.0.0.0" # Command to run when the container starts, starting the web server with Uvicorn
ports:
- 0.0.0.0:8003:8003 # Map port 8003 on the host to port 8003 on the container
volumes:
- ./app:/code/app
restart: on-failure