-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (50 loc) · 943 Bytes
/
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
44
45
46
47
48
49
50
51
52
services:
warpgen:
container_name: warpgen
build:
context: .
networks:
- main
healthcheck:
test:
[
"CMD",
"curl",
"--include",
"--request",
"GET",
"http://localhost:8000/health",
]
interval: 5s
timeout: 20s
retries: 10
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
restart: on-failure:5
nginx:
container_name: warpgen-nginx
build: nginx
ports:
- 80:80
- 443:443
depends_on:
- warpgen
networks:
- main
healthcheck:
test:
[
"CMD",
"curl",
"--include",
"--request",
"GET",
"https://localhost:443/health",
"-k",
]
interval: 5s
timeout: 20s
retries: 10
restart: unless-stopped
networks:
main:
driver: bridge