Skip to content

Instantly share code, notes, and snippets.

View hermesalvesbr's full-sized avatar
🎯
Focusing

Hermes Alves hermesalvesbr

🎯
Focusing
View GitHub Profile
@hermesalvesbr
hermesalvesbr / docker-compose.yml
Created November 8, 2023 19:43
This Docker Compose configuration defines a multi-container setup for running Directus (a headless CMS) alongside two PostgreSQL databases, one acting as the primary server and the other as a replica. The goal is to achieve replication between the two PostgreSQL instances.
# This Docker Compose file defines three services: directus, postgres-primary, and postgres-replica.
# directus service runs Directus, a headless CMS, and depends on the postgres-primary service.
# postgres-primary service is the primary PostgreSQL database server configured with various environment variables and PostgreSQL settings.
# postgres-replica service is the replica PostgreSQL server configured for streaming replication from the primary server.
# The services are connected to a custom network called mynetwork.
# PostgreSQL settings such as shared buffers, work memory, and replication configurations are set for both primary and replica servers.
# The replication configuration specifies the streaming replication mode and replication user details.
################
# Note: Despite the provided configuration, replication is not happening as expected. Can anyone help diagnose the issue?
################
window.VLibras = (function (n) {
var e = {}
function t(r) {
if (e[r]) return e[r].exports
var s = (e[r] = { i: r, l: !1, exports: {} })
return n[r].call(s.exports, s, s.exports, t), (s.l = !0), s.exports
}
return (
(t.m = n),
(t.c = e),
# 1 Adicione o ip interno do docker para o proxy
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 0.0.0.0/0
## 2 Ativar Websocket Support no caprover
## Não precisa de map de porta.
#!/bin/sh
## Shell Script para instalar portabilis/i-educar-reports-package.git
## 20/04/2022 11:45 AM
echo "#####|> Iniciando a instalação <|#####"
echo "Rode este script dentro de /var/www/ieducar/"
echo "1. Copiando do github..."
cd /var/www/ieducar && sudo rm -rf packages/portabilis/i-educar-reports-package
git clone https://github.com/portabilis/i-educar-reports-package.git packages/portabilis/i-educar-reports-package
rm -Rf ieducar/modules/Reports
echo "2. Composer na versão obrigatória..."