version: '3.8' services: app: build: . ports: - "8501:8501" volumes: - .:/app # Mount current directory to /app in container for live code updates env_file: - .env # Load environment variables from .env file # If you were using a separate DB like Postgres: # depends_on: # - db # environment: # - DATABASE_URL=postgresql://user:password@db:5432/mydatabase # Example for a Postgres DB (uncomment and configure if needed instead of SQLite) # db: # image: postgres:15 # volumes: # - postgres_data:/var/lib/postgresql/data/ # environment: # - POSTGRES_USER=user # - POSTGRES_PASSWORD=password # - POSTGRES_DB=mydatabase # ports: # - "5432:5432" # volumes: # Uncomment if using Postgres # postgres_data: