-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (39 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
48 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: palacefine-backend
restart: unless-stopped
# Network configuration
ports:
- "5002:5002"
# Device access for camera and GPIO
devices:
- /dev/video0:/dev/video0 # Camera access
- /dev/gpiomem:/dev/gpiomem # GPIO access for LED control
# Privileged mode for GPIO/LED control
# This is needed for rpi-ws281x to control the LED strip
privileged: true
# Mount /dev for device access
volumes:
- /dev:/dev
- ./backend:/app # Mount backend code for development
# Environment variables
environment:
- BACKEND_HOST=0.0.0.0
- BACKEND_PORT=5002
- FRONTEND_ORIGIN=*
- ADAPTIVE=true
- PYTHONUNBUFFERED=1
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Optional: Add a network for future expansion
networks:
default:
name: palacefine-network