-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (32 loc) · 977 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
php-microservice-rabbitmq-test:
image: rabbitmq:3.10.7-management-alpine
container_name: php-microservice-rabbitmq-test
hostname: php-microservice-rabbitmq-test
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
RABBITMQ_DEFAULT_VHOST: test
tty: true
healthcheck:
test: "exit 0"
micro_consumer:
build:
context: ./
dockerfile: ./docker/Dockerfile
network: host
image: php-microservice-test:latest
entrypoint: ["/app/vendor/bin/phpunit", "--testsuite", "Consumer"]
init: true
tty: true
depends_on:
php-microservice-rabbitmq-test:
condition: service_healthy
micro:
image: php-microservice-test:latest
entrypoint: ["/app/vendor/bin/phpunit", "--testsuite", "Unit,Functional"]
init: true
tty: true
depends_on:
- micro_consumer