version: '3.8' services: app: build: . container_name: boneage_app expose: - "8000" restart: unless-stopped # Remove stdout buffering for real-time logs environment: - PYTHONUNBUFFERED=1 nginx: image: nginx:latest container_name: boneage_nginx ports: - "80:80" - "443:443" volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./certs:/etc/nginx/certs:ro # Mount SSL certificates here depends_on: - app restart: unless-stopped