version: '3.8'

services:
  python108:
    build: .
    container_name: python108_app
    ports:
      - "5000:5000"
    volumes:
      # Persist the database outside the container
      - python108_data:/app/data
    environment:
      - FLASK_ENV=production
      - SECRET_KEY=change-this-to-a-random-secret-key
    restart: unless-stopped

volumes:
  python108_data:
    driver: local
