From 2f2172a4f58b4d591be1758ef1933dcbf5b07e32 Mon Sep 17 00:00:00 2001 From: Sidney Date: Sun, 19 Apr 2026 16:10:02 -0300 Subject: [PATCH] Fix: ensure depends_on is a simple list for Swarm compatibility --- docker-compose.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e35679b..e476d4c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -59,8 +59,7 @@ services: minio-init: image: minio/mc:latest depends_on: - minio: - condition: service_healthy + - minio entrypoint: > /bin/sh -c " mc alias set local http://minio:9000 $${MINIO_ROOT_USER:-minioadmin} $${MINIO_ROOT_PASSWORD:-MiniO2026!Seguro}; @@ -89,10 +88,8 @@ services: dockerfile: Dockerfile restart: always depends_on: - postgres: - condition: service_healthy - minio: - condition: service_healthy + - postgres + - minio environment: - NODE_ENV=production - PORT=3000 @@ -130,8 +127,7 @@ services: dockerfile: Dockerfile restart: always depends_on: - postgres: - condition: service_healthy + - postgres environment: - NODE_ENV=production - PORT=3001