-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (80 loc) · 1.8 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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "2.4"
services:
reverse_proxy:
image: cerfa_reverse_proxy
container_name: cerfa_reverse_proxy
build:
context: reverse_proxy
mem_limit: 256m
restart: unless-stopped
ports:
- 80:80
- 443:443
networks:
- cerfa_network
depends_on:
- server
- ui
environment:
- PARANOIA=1
- ANOMALY_INBOUND=5
- ANOMALY_OUTBOUND=4
- REPORTING_LEVEL=4
- DNS_SERVER=127.0.0.11
- PROXY=1
- SERVERNAME=localhost
- ACCESSLOG=/data/access.log
- ERRORLOG=/data/error.log
- LOGLEVEL=warn
- NGINX_ALWAYS_TLS_REDIRECT=false
- ALLOWED_METHODS=GET HEAD POST OPTIONS PUT DELETE
ui:
image: cerfa_ui
container_name: cerfa_ui
build:
context: ui
mem_limit: 256m
networks:
- cerfa_network
depends_on:
- server
environment:
- SERVER_URI=http://server:5000
server:
image: cerfa_server
container_name: cerfa_server
build:
context: server
mem_limit: 1g
restart: unless-stopped
networks:
- cerfa_network
depends_on:
- mongodb
- clamav
environment:
- CERFA_MONGODB_URI=mongodb://mongodb:27017/cerfa?retryWrites=true&w=majority
- CERFA_LOG_DESTINATIONS=stdout,mongodb
- CERFA_CLAMAV_URI=clamav:3310
mongodb:
image: mongo:5.0.6-focal
container_name: cerfa_mongodb
mem_limit: 1g
restart: unless-stopped
networks:
- cerfa_network
clamav:
image: clamav/clamav:0.105.0
container_name: cerfa_clamav
mem_limit: 3g
restart: unless-stopped
networks:
- cerfa_network
healthcheck:
test: [ "CMD", "/usr/local/bin/clamdcheck.sh" ]
interval: 60s
retries: 3
start_period: 120s
networks:
cerfa_network:
name: cerfa_network