| 1 | services: |
| 2 | prosody: |
| 3 | build: |
| 4 | context: .. |
| 5 | dockerfile: tests/Dockerfile |
| 6 | user: prosody |
| 7 | command: sh tests/prosody/start.sh |
| 8 | volumes: |
| 9 | - ./prosody/prosody.cfg.lua:/etc/prosody/prosody.cfg.lua:ro |
| 10 | healthcheck: |
| 11 | test: ["CMD", "lua5.4", "-e", "assert(require'socket'.connect('127.0.0.1', 5222))"] |
| 12 | interval: 1s |
| 13 | timeout: 2s |
| 14 | retries: 30 |
| 15 | |
| 16 | tests: |
| 17 | build: |
| 18 | context: .. |
| 19 | dockerfile: tests/Dockerfile |
| 20 | environment: |
| 21 | - VERSE_TEST_HOST=prosody |
| 22 | - VERSE_TEST_DEBUG |
| 23 | volumes: |
| 24 | - .:/verse/tests |
| 25 | depends_on: |
| 26 | prosody: |
| 27 | condition: service_healthy |