-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.2 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
version: '3.8'
services:
clamd:
image: clamav/clamav:stable
restart: unless-stopped
networks:
- clam-net
healthcheck:
test: ["CMD", "clamdscan", "--ping", "1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
redis:
image: redis:alpine
restart: unless-stopped
networks:
- clam-net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
api:
build: .
restart: unless-stopped
depends_on:
clamd:
condition: service_healthy
redis:
condition: service_healthy
environment:
- NODE_ENV=production
- CLAMD_IP=clamd
- APP_FORM_KEY=FILES
- APP_PORT=3000
- APP_MAX_FILE_SIZE=26214400
- APP_MAX_FILES_NUMBER=4
- CLAMD_PORT=3310
- CLAMD_TIMEOUT=60000
- REDIS_URL=redis://redis:6379
- JOB_EXPIRATION=3600
ports:
- '3000:3000'
networks:
- clam-net
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 3000 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
clam-net:
driver: bridge