services: app: build: . # Build the image from the Dockerfile in the current directory container_name: fuel_scraper_app_service volumes: # Mount current directory for live code updates during development - .:/app # If your app needs to connect to a DB on the host, and host.docker.internal # isn't working, you might need to add it to the host network (less secure, platform-dependent) # or use 'extra_hosts' on Linux. # For host.docker.internal to work on Linux, you might need: extra_hosts: - "host.docker.internal:host-gateway" #environment: # You can pass DATABASE_URL here to override database.py if needed # DATABASE_URL: "postgresql://your_user:your_password@host.docker.internal:5432/fuelprices" # PYTHONUNBUFFERED: 1 # Already in Dockerfile, but good practice # The default command comes from the Dockerfile's CMD # To keep the container running after the script finishes (for debugging or exec): # tty: true # stdin_open: true