services: app: build: context: . dockerfile: Dockerfile container_name: "${APP_NAME:-formeleon}" ports: - "${PORT:-5000}:5000" volumes: # Mount entire project directory for hot-reload in development # Exclude the virtual environment if it exists locally to prevent conflicts with container venv - ./:/app - /app/venv # Persistent data volumes mapping to host # - ./data:/app/data - ./instance:/app/instance - ./logs:/app/logs # - ./formeleon.db:/app/formeleon.db env_file: - .env restart: unless-stopped # Nginx service to serve tests_html for local development test-site: image: nginx:alpine container_name: formeleon-test-site ports: - "8080:80" volumes: - ./tests_html:/usr/share/nginx/html:ro restart: unless-stopped profiles: - dev