Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31b59bb696 | ||
|
|
03a0809c6a |
@@ -5,12 +5,11 @@ version: "3.7"
|
||||
##########################################################
|
||||
|
||||
services:
|
||||
|
||||
# ===== KRAYIN CRM =====
|
||||
crm:
|
||||
image: gitea.blyzer.com.br/blyzer/growup-crm:latest
|
||||
ports:
|
||||
- "8090:80" # Ajuste a porta externa conforme necessário
|
||||
- "8090:80" # Ajuste a porta externa conforme necessário
|
||||
volumes:
|
||||
- growup_data:/var/www/html/storage
|
||||
- growup_public:/var/www/html/public/storage
|
||||
@@ -61,7 +60,7 @@ services:
|
||||
- node.role == manager
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1'
|
||||
cpus: "1"
|
||||
memory: 1024M
|
||||
command:
|
||||
[
|
||||
@@ -71,20 +70,35 @@ services:
|
||||
"--default-authentication-plugin=mysql_native_password",
|
||||
"--max-allowed-packet=512MB",
|
||||
"--expire_logs_days=7",
|
||||
"--max_binlog_size=100M"
|
||||
"--max_binlog_size=100M",
|
||||
]
|
||||
|
||||
# ===== BACKUP MYSQL =====
|
||||
backup-mysql:
|
||||
image: fradelg/mysql-cron-backup
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
environment:
|
||||
MYSQL_HOST: mysql
|
||||
MYSQL_USER: root
|
||||
MYSQL_PASS: ${DB_PASSWORD}
|
||||
CRON_TIME: "55 2 * * *" # Roda todo dia exatamente às 02:55 da manhã
|
||||
MAX_BACKUPS: 3 # Mantém apenas os 3 últimos dias
|
||||
INIT_BACKUP: "1" # Faz um backup imediatamente ao ligar o container
|
||||
volumes:
|
||||
- /opt/backups_db/growup-multi:/backup
|
||||
networks:
|
||||
- network_public
|
||||
|
||||
# ===== REDIS =====
|
||||
redis:
|
||||
image: redis:latest
|
||||
command:
|
||||
[
|
||||
"redis-server",
|
||||
"--appendonly",
|
||||
"yes",
|
||||
"--port",
|
||||
"6379"
|
||||
]
|
||||
command: ["redis-server", "--appendonly", "yes", "--port", "6379"]
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user