feature/cierres (#25)
Varios cambios Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #25
This commit is contained in:
@ -2,9 +2,8 @@ services:
|
||||
testing:
|
||||
profiles:
|
||||
- testing
|
||||
container_name: incoviba_tests
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
container_name: incoviba_tests
|
||||
env_file:
|
||||
- ${APP_PATH:-.}/.test.env
|
||||
- ./.key.env
|
||||
@ -12,24 +11,60 @@ services:
|
||||
- ${APP_PATH:-.}/:/code
|
||||
- ./logs/test:/logs
|
||||
command: [ '/code/bin/phpunit-watcher', 'watch' ]
|
||||
networks:
|
||||
- testing
|
||||
depends_on:
|
||||
- test-db
|
||||
test-db:
|
||||
condition: service_healthy
|
||||
test-redis:
|
||||
condition: service_healthy
|
||||
test-mqtt:
|
||||
condition: service_started
|
||||
|
||||
test-db:
|
||||
profiles:
|
||||
- testing
|
||||
image: mysql:5.7
|
||||
image: mariadb:latest
|
||||
container_name: incoviba_test_db
|
||||
restart: unless-stopped
|
||||
env_file: ${APP_PATH:-.}/.test.db.env
|
||||
volumes:
|
||||
- test-db:/var/lib/mysql
|
||||
- test-db:/var/lib/mysql}
|
||||
healthcheck:
|
||||
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- default
|
||||
- adminer_network
|
||||
- testing
|
||||
|
||||
test-redis:
|
||||
profiles:
|
||||
- testing
|
||||
image: redis:latest
|
||||
container_name: incoviba_test_redis
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- testing
|
||||
|
||||
test-mqtt:
|
||||
profiles:
|
||||
- testing
|
||||
image: maateen/docker-beanstalkd
|
||||
container_name: incoviba_test_mqtt
|
||||
healthcheck:
|
||||
test: [ "CMD", "nc", "-z", "localhost", "11300" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- testing
|
||||
|
||||
volumes:
|
||||
test-db: {}
|
||||
|
||||
networks:
|
||||
adminer_network: {}
|
||||
testing: {}
|
||||
|
Reference in New Issue
Block a user