forked from benzino77/clamav-rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (29 loc) · 1.05 KB
/
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
version: '3.8'
services:
clamd:
image: clamav/clamav:stable
restart: unless-stopped
networks:
- clam-net
api:
image: benzino77/clamav-rest-api:1.5.1
restart: unless-stopped
# depends_on is ignored in some situations (have a look at the discussion in this PR: https://github.com/benzino77/clamav-rest-api/pull/23)
# to fix such situation there is wait-for-it script available inside the CRA docker image (https://github.com/vishnubob/wait-for-it)
# so to wait for clamd to be available, one could ovewrite the CMD with wait-for-it script
# UNCOMMENT following line to check if clamav is available on host clamd and port 3310, set timeout to 60 seconds
# command: ['/usr/bin/wait-for-it', '-h', 'clamd', '-p', '3310', '-s', '-t', '60', '--', 'npm', 'start']
depends_on:
- clamd
environment:
- NODE_ENV=production
- CLAMD_IP=clamd
- APP_FORM_KEY=FILES
- APP_PORT=3000
- APP_MAX_FILE_SIZE=26214400
ports:
- '8080:3000'
networks:
- clam-net
networks:
clam-net: