add Autostart all service

This commit is contained in:
2025-12-26 15:51:34 -03:00
parent 1b12d51cde
commit f557a1b2e9

View File

@@ -17,7 +17,7 @@ services:
- backend-net
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
@@ -36,6 +36,7 @@ services:
condition: service_healthy
networks:
- backend-net
restart: unless-stopped
volumes:
- ./backend:/app
- /app/node_modules
@@ -45,14 +46,14 @@ services:
build: ./alpr-service
container_name: controlpatente-alpr
ports:
- "5001:5001" # Permite acceder al stream de video desde el nave
- "5001:5001" # Permite acceder al stream de video desde el nave
environment:
- BACKEND_URL=http://backend:3000
# On Mac, you usually cannot pass /dev/video0 directly.
# We might need to use a stream or just test with a file for now if direct access fails.
# For Linux/Raspberry Pi, the device mapping below is correct.
devices:
- "/dev/video0:/dev/video0"
- "/dev/video0:/dev/video0"
networks:
- backend-net
depends_on:
@@ -73,6 +74,7 @@ services:
- "5173:5173"
networks:
- backend-net
restart: unless-stopped
volumes:
- ./frontend:/app
- /app/node_modules