fix ci --check

This commit is contained in:
Gsk54 2023-01-09 15:39:55 +01:00
parent e7009473e6
commit 2db903cd1c
3 changed files with 16 additions and 9 deletions

View File

@ -7,7 +7,6 @@ DATABASE_URL="postgresql://user:user@localhost:5601/user?schema=public"
# RABBIT MQ
RMQ_URI=amqp://v3-broker:5672
BROKER_IMAGE=rabbitmq:3-management
# POSTGRES
POSTGRES_IMAGE=postgres:15.0

View File

@ -1,6 +1,6 @@
#!/bin/bash
while ! docker logs v3-user --tail=1 | grep -q "Nest application successfully started";
while ! docker logs v3-user-db-test --tail=1 | grep -q "database system is ready to accept connections";
do
sleep 5
echo "Waiting for Nest to be up..."
echo "Waiting for Test DB to be up..."
done

View File

@ -10,6 +10,12 @@ services:
- .env.test
ports:
- 5001:5001
depends_on:
- db-test
networks:
v3-network:
aliases:
- v3-user-api
db-test:
container_name: v3-user-db-test
@ -20,10 +26,12 @@ services:
POSTGRES_PASSWORD: user
ports:
- 5601:5432
networks:
v3-network:
aliases:
- v3-user-db-test
broker:
container_name: v3-broker
image: ${BROKER_IMAGE}
ports:
- 5672:5672
- 15672:15672
networks:
v3-network:
name: v3-network
driver: bridge