-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (92 loc) · 2.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (92 loc) · 2.16 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
services:
frontend:
image: nginx:alpine
ports:
- "8000:80"
volumes:
- ./index.html:/usr/share/nginx/html/index.html:ro
networks:
- gp3ds
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/index.html"]
interval: 10s
timeout: 5s
retries: 3
nodejs:
build:
context: ./nodejs
dockerfile: Dockerfile
ports:
- "3001:3001"
env_file:
- ./nodejs/.env
environment:
- PORT=3001
- FRONTEND_ORIGIN=http://localhost:8000
networks:
- gp3ds
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--output-document=-", "http://127.0.0.1:3001/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
php:
build:
context: ./php
dockerfile: Dockerfile
ports:
- "8003:8080"
env_file:
- ./php/.env
environment:
- FRONTEND_ORIGIN=http://localhost:8000
networks:
- gp3ds
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--output-document=-", "http://127.0.0.1:8080/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
dotnet:
build:
context: ./dotnet
dockerfile: Dockerfile
ports:
- "8006:8080"
env_file:
- ./dotnet/.env
environment:
- ASPNETCORE_URLS=http://+:8080
- GP_SAMPLE_PORT=8080
- FRONTEND_ORIGIN=http://localhost:8000
networks:
- gp3ds
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--output-document=-", "http://127.0.0.1:8080/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
java:
build:
context: ./java
dockerfile: Dockerfile
ports:
- "8004:8080"
env_file:
- ./java/.env
environment:
- FRONTEND_ORIGIN=http://localhost:8000
networks:
- gp3ds
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--output-document=-", "http://127.0.0.1:8080/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
networks:
gp3ds:
driver: bridge