Merge branch 'extractTools' into 'main'

Extract tools

See merge request v3/service/user!25
This commit is contained in:
Sylvain Briat 2023-03-17 10:10:47 +00:00
commit 6b8a871531
3 changed files with 9 additions and 19 deletions

View File

@ -3,10 +3,10 @@ SERVICE_URL=0.0.0.0
SERVICE_PORT=5001 SERVICE_PORT=5001
# PRISMA # PRISMA
DATABASE_URL="postgresql://mobicoop:mobicoop@v3-user-db-test:5432/mobicoop?schema=public" DATABASE_URL="postgresql://mobicoop:mobicoop@v3-db:5432/mobicoop?schema=public"
# RABBIT MQ # RABBIT MQ
RMQ_URI=amqp://v3-user-broker:5672 RMQ_URI=amqp://v3-broker:5672
# MESSAGE BROKER # MESSAGE BROKER
BROKER_IMAGE=rabbitmq:3-alpine BROKER_IMAGE=rabbitmq:3-alpine
@ -16,6 +16,6 @@ POSTGRES_IMAGE=postgres:15.0
# REDIS # REDIS
REDIS_IMAGE=redis:7.0-alpine REDIS_IMAGE=redis:7.0-alpine
REDIS_HOST=v3-user-redis REDIS_HOST=v3-redis
REDIS_PASSWORD=redis REDIS_PASSWORD=redis
REDIS_PORT=6379 REDIS_PORT=6379

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
testlog() { testlog() {
docker logs v3-user-db-test | grep -q "database system is ready to accept connections" docker logs v3-db | grep -q "database system is ready to accept connections"
} }
testlog 2> /dev/null testlog 2> /dev/null

View File

@ -1,30 +1,20 @@
version: '3.8' version: '3.8'
services: services:
v3-user-redis: db:
container_name: v3-user-redis container_name: v3-db
image: ${REDIS_IMAGE}
ports:
- 6501:6379
env_file:
- ci/.env.ci
networks:
- v3-network
v3-user-db-test:
container_name: v3-user-db-test
image: ${POSTGRES_IMAGE} image: ${POSTGRES_IMAGE}
environment: environment:
POSTGRES_DB: mobicoop POSTGRES_DB: mobicoop
POSTGRES_USER: mobicoop POSTGRES_USER: mobicoop
POSTGRES_PASSWORD: mobicoop POSTGRES_PASSWORD: mobicoop
ports: ports:
- 5601:5432 - 5432:5432
networks: networks:
- v3-network - v3-network
v3-user-broker: broker:
container_name: v3-user-broker container_name: v3-broker
image: ${BROKER_IMAGE} image: ${BROKER_IMAGE}
ports: ports:
- 5672:5672 - 5672:5672