Files
pipeline-lifetime/docker-compose.dev.yml

22 lines
771 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Development-only overrides. Do not use this file in production.
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
# Docker Compose 默认只读取 .env.env.local 用于本机直接运行 Python 时覆盖 .env。
services:
pipeline-lifetime:
restart: "no"
environment:
APP_ENV: development
DEBUG: "true"
SESSION_COOKIE_SECURE: "false"
command:
["conda", "run", "--no-capture-output", "-n", "demo", "python", "main.py"]
volumes:
- ./app:/app/app
- ./templates:/app/templates
- ./static:/app/static
- ./main.py:/app/main.py
- ./data:/app/data
- ./data/uploads:/app/uploads
- ./data/images:/app/static/images
- ./example.xlsx:/app/example.xlsx:ro