-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
64 lines (62 loc) · 1.07 KB
/
docker-compose-dev.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
53
54
55
56
57
58
59
60
61
62
63
64
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",
"--reload",
]
restart: on-failure:5
working_dir: /var/www
volumes:
- ./app/:/var/www/app/
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