-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (62 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
72 lines (62 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.8'
services:
whatsapp-calculator:
build:
context: .
dockerfile: Dockerfile
image: whatsapp-calculator-service:latest
container_name: whatsapp-calculator-service
ports:
- "8080:8080"
environment:
# Configurações de produção
QUARKUS_LOG_CONSOLE_LEVEL: INFO
QUARKUS_HTTP_PORT: 8080
QUARKUS_HTTP_HOST: 0.0.0.0
# Configurações de preços (podem ser ajustadas conforme necessário)
WHATSAPP_PRICE_MARKETING: 0.0625
WHATSAPP_PRICE_UTILITY: 0.035
WHATSAPP_PRICE_AUTHENTICATION: 0.0315
WHATSAPP_PRICE_SERVICE: 0.03
WHATSAPP_FREE_SERVICE_MESSAGES: 1000
WHATSAPP_USD_BRL_EXCHANGE_RATE: 4.95
# JVM Options para produção
JAVA_OPTS: >-
-Xmx512m
-Xms256m
-XX:+UseG1GC
-XX:MaxGCPauseMillis=200
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/tmp
restart: unless-stopped
# Limites de recursos
deploy:
resources:
limits:
cpus: '1'
memory: 768M
reservations:
cpus: '0.5'
memory: 512M
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/q/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Volumes para logs persistentes
volumes:
- ./logs:/app/logs
- /tmp:/tmp
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- app-network
networks:
app-network:
driver: bridge