Move logging setup into max/log.py. The file handler is only used outside debug mode and its directory is configurable via LOG_DIR. FLASK_ENV is deprecated in Flask; debug mode is now controlled via FLASK_DEBUG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
571 B
YAML
28 lines
571 B
YAML
services:
|
|
dev:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
command: sleep infinity
|
|
volumes:
|
|
- ..:/workspaces/max:cached
|
|
- home:/home/dev
|
|
environment:
|
|
- PYTHONPATH=/workspaces/max
|
|
- PGSQL_HOST=postgresql
|
|
- PGSQL_PORT=5432
|
|
- PGSQL_USER=max
|
|
- PGSQL_PASSWORD=max
|
|
- PGSQL_NAME=max
|
|
depends_on:
|
|
- postgresql
|
|
postgresql:
|
|
image: postgres:18.6
|
|
environment:
|
|
- POSTGRES_USER=max
|
|
- POSTGRES_PASSWORD=max
|
|
- POSTGRES_DB=max
|
|
volumes:
|
|
home:
|
|
name: max-devcontainer-home
|