File size: 817 Bytes
e56fb0d
 
1adb173
e56fb0d
1adb173
 
e56fb0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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: