Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .env.portainer.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Fizzy Portainer Stack - Environment Variables
#
# DICA: Use o script para gerar automaticamente!
# ./scripts/generate-secrets.sh
#
# Ou copie este arquivo manualmente:
# cp .env.portainer.example .env.portainer

# ============================================
# CONFIGURAÇÃO OBRIGATÓRIA
# ============================================

# Host do Fizzy (domínio que será usado)
# ALTERE para seu domínio real!
FIZZY_HOST=fizzy.localhost

# Rails Secret Key Base
# GERE com: ./scripts/generate-secrets.sh
# OU manualmente: openssl rand -hex 64
SECRET_KEY_BASE=

# ============================================
# BANCO DE DADOS (MySQL Externo)
# ============================================

# Host do MySQL (nome do serviço/container ou IP)
# Se o MySQL está em outro container Swarm: tasks.mysql ou nome-do-servico
# Se está em container Docker: nome-do-container
# Se está em servidor separado: IP do servidor
MYSQL_HOST=mysql

# Porta do MySQL
MYSQL_PORT=3306

# Usuário do MySQL
MYSQL_USER=root

# Senha do MySQL
MYSQL_PASSWORD=Slay159753

# Nome do banco de dados (será criado se não existir)
MYSQL_DATABASE=fizzy_production

# ============================================
# CONFIGURAÇÃO DE EMAIL (SMTP)
# ============================================

# Servidor SMTP
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_DOMAIN=gmail.com

# Credenciais SMTP
[email protected]
SMTP_PASSWORD=sua-senha-de-app

# Email remetente
[email protected]

# ============================================
# WEB PUSH NOTIFICATIONS (VAPID)
# ============================================

# GERE com: ./scripts/generate-secrets.sh
# As chaves são geradas automaticamente pelo script!

VAPID_PUBLIC_KEY=
VAPID_PRIVATE_KEY=

# ============================================
# CONFIGURAÇÕES OPCIONAIS
# ============================================

# Multi-tenancy (permitir múltiplas organizações)
# MULTI_TENANT=true

# Adapter de storage (local, s3)
# ACTIVE_STORAGE_SERVICE=local

# AWS S3 (se usar s3)
# S3_ACCESS_KEY_ID=
# S3_SECRET_ACCESS_KEY=
# S3_BUCKET=
# S3_REGION=us-east-1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# Ignore all environment files (except templates).
/.env*
!/.env*.erb
!/.env*.example

# Ignore all logfiles and tempfiles.
/log/*
Expand Down
Loading