fix ci --check
This commit is contained in:
parent
e7009473e6
commit
2db903cd1c
|
@ -7,7 +7,6 @@ DATABASE_URL="postgresql://user:user@localhost:5601/user?schema=public"
|
||||||
|
|
||||||
# RABBIT MQ
|
# RABBIT MQ
|
||||||
RMQ_URI=amqp://v3-broker:5672
|
RMQ_URI=amqp://v3-broker:5672
|
||||||
BROKER_IMAGE=rabbitmq:3-management
|
|
||||||
|
|
||||||
# POSTGRES
|
# POSTGRES
|
||||||
POSTGRES_IMAGE=postgres:15.0
|
POSTGRES_IMAGE=postgres:15.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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
|
do
|
||||||
sleep 5
|
sleep 5
|
||||||
echo "Waiting for Nest to be up..."
|
echo "Waiting for Test DB to be up..."
|
||||||
done
|
done
|
||||||
|
|
|
@ -10,6 +10,12 @@ services:
|
||||||
- .env.test
|
- .env.test
|
||||||
ports:
|
ports:
|
||||||
- 5001:5001
|
- 5001:5001
|
||||||
|
depends_on:
|
||||||
|
- db-test
|
||||||
|
networks:
|
||||||
|
v3-network:
|
||||||
|
aliases:
|
||||||
|
- v3-user-api
|
||||||
|
|
||||||
db-test:
|
db-test:
|
||||||
container_name: v3-user-db-test
|
container_name: v3-user-db-test
|
||||||
|
@ -20,10 +26,12 @@ services:
|
||||||
POSTGRES_PASSWORD: user
|
POSTGRES_PASSWORD: user
|
||||||
ports:
|
ports:
|
||||||
- 5601:5432
|
- 5601:5432
|
||||||
|
networks:
|
||||||
|
v3-network:
|
||||||
|
aliases:
|
||||||
|
- v3-user-db-test
|
||||||
|
|
||||||
broker:
|
networks:
|
||||||
container_name: v3-broker
|
v3-network:
|
||||||
image: ${BROKER_IMAGE}
|
name: v3-network
|
||||||
ports:
|
driver: bridge
|
||||||
- 5672:5672
|
|
||||||
- 15672:15672
|
|
||||||
|
|
Loading…
Reference in New Issue