-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yaml
37 lines (37 loc) · 1.09 KB
/
compose.yaml
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:
nginx-proxy:
build: nginx
restart: always
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/flossed_falcon.conf:/tmp/default.conf
# alternatively, if deployment with TLS is desired, make sure to fill the files in ./nginx/ssl
# - ./nginx/flossed_falcon_ssl.conf:/tmp/default.conf
# - ./nginx/ssl:/opt/ssl_certificates
environment:
- FALCON_SERVER_ADDR=flossed-falcon:8000
ports:
- "80:80"
- "443:443"
depends_on:
- flossed-falcon
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:80/health-check || exit 1"]
interval: 600s
timeout: 600s
retries: 3
command: /app/start.sh
flossed-falcon:
build: flossed-falcon
restart: always
volumes:
- ./data/malpedia_flossed.json:/data/malpedia_flossed.json
- ./logs:/var/log/
ports:
- '8000:8000'
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:8000/falcon-health-check || exit 1"]
interval: 600s
timeout: 600s
retries: 3
command: python main.py