-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (81 loc) · 1.88 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
services:
db:
image: postgres:15.1-alpine3.17
env_file:
- .env
- path: .env.local
required: false
volumes:
- ./data/db:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 256MB
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 60s
timeout: 10s
retries: 5
start_period: 20s
redis:
image: redis:7.0.7-alpine3.17
command: redis-server --requirepass ${REDIS_PASSWORD}
env_file:
- .env
- path: .env.local
required: false
volumes:
- ./data/redis:/data
deploy:
resources:
limits:
memory: 2G
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli --pass ${REDIS_PASSWORD} ping | grep PONG"]
interval: 60s
timeout: 10s
retries: 5
start_period: 20s
report:
build:
target: report
volumes:
- ./data/report:/data/ezreeport/report # Report output
- ./logs/report:/var/log/ezreeport/report # Logs output
ports:
- 8080:8080
env_file:
- .env
- path: .env.local
required: false
extra_hosts:
- host.docker.internal:host-gateway # Used because elastic is on the same machine, but not the same network
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
deploy:
resources:
limits:
memory: ${REPORT_MEM_LIMIT:-7}G
restart: unless-stopped
mail:
build:
target: mail
volumes:
- ./logs/mail:/var/log/ezreeport/mail # Logs output
env_file:
- .env
- path: .env.local
required: false
depends_on:
redis:
condition: service_healthy
deploy:
resources:
limits:
memory: ${EMAIL_MEM_LIMIT:-3}G
restart: unless-stopped