-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
43 lines (40 loc) · 1.02 KB
/
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
35
36
37
38
39
40
41
42
43
services:
tests:
container_name: tests
image: websocket-${PHP_VERSION:-8.3}-dev
build:
context: .
dockerfile: php-${PHP_VERSION:-8.3}.Dockerfile
volumes:
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
- ./phpunit.xml:/usr/src/code/phpunit.xml
networks:
- websockets
swoole:
container_name: swoole
image: websocket-${PHP_VERSION:-8.3}-dev
command: php tests/servers/Swoole/server.php
volumes:
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
- ./phpunit.xml:/usr/src/code/phpunit.xml
networks:
- websockets
ports:
- "8001:80"
workerman:
container_name: workerman
image: websocket-${PHP_VERSION:-8.3}-dev
command: php tests/servers/Workerman/server.php start
volumes:
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
- ./phpunit.xml:/usr/src/code/phpunit.xml
networks:
- websockets
ports:
- "8002:80"
networks:
websockets:
driver: bridge