-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (97 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
102 lines (97 loc) · 2.27 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
nodejs:
build:
context: ./nodejs
dockerfile: Dockerfile
ports:
- "8001:8000"
environment:
- PORT=8000
- PUBLIC_API_KEY=${PUBLIC_API_KEY}
- SECRET_API_KEY=${SECRET_API_KEY}
networks:
- payments
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8000/config"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
php:
build:
context: ./php
dockerfile: Dockerfile
ports:
- "8003:8000"
environment:
- PUBLIC_API_KEY=${PUBLIC_API_KEY}
- SECRET_API_KEY=${SECRET_API_KEY}
networks:
- payments
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8000/config.php"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
java:
build:
context: ./java
dockerfile: Dockerfile
ports:
- "8004:8000"
environment:
- PUBLIC_API_KEY=${PUBLIC_API_KEY}
- SECRET_API_KEY=${SECRET_API_KEY}
networks:
- payments
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8000/config"]
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
dotnet:
build:
context: ./dotnet
dockerfile: Dockerfile
ports:
- "8006:8000"
environment:
- ASPNETCORE_URLS=http://+:8000
- PUBLIC_API_KEY=${PUBLIC_API_KEY}
- SECRET_API_KEY=${SECRET_API_KEY}
networks:
- payments
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8000/config"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
# Test runner container
tests:
build:
context: .
dockerfile: Dockerfile.tests
depends_on:
nodejs:
condition: service_healthy
php:
condition: service_healthy
java:
condition: service_healthy
dotnet:
condition: service_healthy
environment:
- CI=true
networks:
- payments
volumes:
- ./test-results:/app/test-results
- ./playwright-report:/app/playwright-report
profiles:
- testing
networks:
payments:
driver: bridge