simplify test ci

This commit is contained in:
sbriat 2023-03-17 11:02:08 +01:00
parent 1aec72d564
commit 1baf9cc7ed
2 changed files with 11 additions and 11 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,30 +1,30 @@
version: '3.8' version: '3.8'
services: services:
v3-user-redis: redis:
container_name: v3-user-redis container_name: v3-redis
image: ${REDIS_IMAGE} image: ${REDIS_IMAGE}
ports: ports:
- 6501:6379 - 6379:6379
env_file: env_file:
- ci/.env.ci - ci/.env.ci
networks: networks:
- v3-network - v3-network
v3-user-db-test: db:
container_name: v3-user-db-test container_name: v3-db
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