22 lines
607 B
YAML
22 lines
607 B
YAML
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
|