Files
baby-monitor/docker-compose.yml
T
Brian Bjarke Jensen 7b4e597e6f
Build and Push Docker Image / build-and-push (pull_request) Successful in 58s
Python Code Quality / python-code-quality (pull_request) Failing after 10s
Python Test / python-test (pull_request) Failing after 24s
added password hashing and ensured admin user exists
2025-11-07 23:48:14 +01:00

34 lines
900 B
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
# Mount source code for hot-reloading during development
- ./src:/app/src:ro
# Persist database to local directory
- ./data:/data
environment:
- ENVIRONMENT=development
# Optional: Override admin credentials for development
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password
# Optional: Use Redis for token storage (uncomment redis service below)
# - REDIS_URI=redis://redis:6379/0
command: ["--host", "0.0.0.0", "--port", "8000", "--reload"]
restart: unless-stopped
# Uncomment to enable Redis token storage
# redis:
# image: redis:7-alpine
# ports:
# - "6379:6379"
# volumes:
# - redis-data:/data
# restart: unless-stopped
# Uncomment if using Redis
# volumes:
# redis-data: