-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 993 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 993 Bytes
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
services:
fpm:
build:
context: .
dockerfile: Dockerfile.fpm
ports:
- "9020:80"
volumes:
- ./src:/usr/share/nginx/html/src
- ./tests:/usr/share/nginx/html/tests
networks:
- testing
healthcheck:
test: ["CMD", "php", "-r", "exit(@fsockopen('127.0.0.1', 80) ? 0 : 1);"]
interval: 2s
timeout: 2s
retries: 15
start_period: 2s
swoole:
build:
context: .
dockerfile: Dockerfile.swoole
ports:
- "9501:80"
volumes:
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
networks:
- testing
healthcheck:
test: ["CMD", "php", "-r", "exit(@fsockopen('127.0.0.1', 80) ? 0 : 1);"]
interval: 2s
timeout: 2s
retries: 15
start_period: 2s
networks:
testing: