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 - backend-net
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"] test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 5 retries: 5
@@ -36,6 +36,7 @@ services:
condition: service_healthy condition: service_healthy
networks: networks:
- backend-net - backend-net
restart: unless-stopped
volumes: volumes:
- ./backend:/app - ./backend:/app
- /app/node_modules - /app/node_modules
@@ -45,7 +46,7 @@ services:
build: ./alpr-service build: ./alpr-service
container_name: controlpatente-alpr container_name: controlpatente-alpr
ports: ports:
- "5001:5001" # Permite acceder al stream de video desde el nave - "5001:5001" # Permite acceder al stream de video desde el nave
environment: environment:
- BACKEND_URL=http://backend:3000 - BACKEND_URL=http://backend:3000
# On Mac, you usually cannot pass /dev/video0 directly. # On Mac, you usually cannot pass /dev/video0 directly.
@@ -73,6 +74,7 @@ services:
- "5173:5173" - "5173:5173"
networks: networks:
- backend-net - backend-net
restart: unless-stopped
volumes: volumes:
- ./frontend:/app - ./frontend:/app
- /app/node_modules - /app/node_modules