version: '3.8'

services:
  glintwine-generator:
    build: .
    container_name: glintwine-generator
    ports:
      - "8501:8501"
    volumes:
      - ./gallery:/app/gallery                 # Галерея сертификатов
      - ./resolutions.csv:/app/resolutions.csv # CSV файл с данными
      - ./data:/app/data                       # Общая папка для данных
    restart: unless-stopped
    environment:
      - PYTHONUNBUFFERED=1
    networks:
      - glintwine-network

networks:
  glintwine-network:
    driver: bridge