-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
61 lines (54 loc) · 1.9 KB
/
docker-compose.prod.yml
File metadata and controls
61 lines (54 loc) · 1.9 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
version: "3.8"
services:
# Frontend - Kanban CRM/ERP
kanban-frontend:
# IMPORTANTE: Substitua 'seu-usuario' pelo seu username do DockerHub
image: seu-usuario/kanban-crm:latest
container_name: kanban-frontend
restart: unless-stopped
environment:
- NODE_ENV=production
# Adicione suas variáveis de ambiente aqui ou use arquivo .env
# - VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
# - VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
# - VITE_N8N_WEBHOOK_URL=${VITE_N8N_WEBHOOK_URL}
networks:
- traefik-public
labels:
# Traefik configuration
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
# HTTP
# IMPORTANTE: Substitua 'seudominio.com' pelo seu domínio real
- "traefik.http.routers.kanban.rule=Host(`seudominio.com`)"
- "traefik.http.routers.kanban.entrypoints=web"
- "traefik.http.routers.kanban.middlewares=redirect-to-https"
# HTTPS
- "traefik.http.routers.kanban-secure.rule=Host(`seudominio.com`)"
- "traefik.http.routers.kanban-secure.entrypoints=websecure"
- "traefik.http.routers.kanban-secure.tls=true"
- "traefik.http.routers.kanban-secure.tls.certresolver=letsencrypt"
# Service
- "traefik.http.services.kanban.loadbalancer.server.port=80"
# Middleware redirect HTTP -> HTTPS
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true"
# Portainer labels (opcional)
- "io.portainer.accesscontrol.teams=admins"
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
traefik-public:
external: true