-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (62 loc) · 1.44 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
version: "2.4"
services:
reverse_proxy:
image: referentiel_reverse_proxy
container_name: referentiel_reverse_proxy
build:
context: reverse_proxy
mem_limit: 96m
restart: unless-stopped
ports:
- 80:80
- 443:443
networks:
- referentiel_network
depends_on:
- server
- ui
environment:
- PARANOIA=1
- ANOMALY_INBOUND=5
- ANOMALY_OUTBOUND=4
- DNS_SERVER=127.0.0.11
- PROXY=1
- ACCESSLOG=/data/access.log
- ERRORLOG=/data/error.log
- LOGLEVEL=warn
- NGINX_ALWAYS_TLS_REDIRECT=false
- ALLOWED_METHODS=GET HEAD POST OPTIONS PUT
ui:
image: referentiel_ui
container_name: referentiel_ui
build:
context: ui
mem_limit: 96m
networks:
- referentiel_network
depends_on:
- server
server:
image: referentiel_server
container_name: referentiel_server
build:
context: server
mem_limit: 768m
restart: unless-stopped
networks:
- referentiel_network
depends_on:
- mongodb
environment:
- REFERENTIEL_MONGODB_URI=mongodb://mongodb:27017/referentiel?retryWrites=true&w=majority
mongodb:
image: mongo:5.0.7-focal
container_name: referentiel_mongodb
command: --wiredTigerCacheSizeGB 3 --port 27017
mem_limit: 3g
restart: unless-stopped
networks:
- referentiel_network
networks:
referentiel_network:
name: referentiel_network