All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m39s
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: graph_postgres
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-graphuser}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-graphpassword}
|
|
POSTGRES_DB: ${POSTGRES_DB:-graphdb}
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
image: gitea.blyzer.com.br/blyzer/graphs-backend:latest
|
|
container_name: graph_backend
|
|
ports:
|
|
- "3004:3004"
|
|
environment:
|
|
- PORT=3004
|
|
- DATABASE_URL=postgres://${POSTGRES_USER:-graphuser}:${POSTGRES_PASSWORD:-graphpassword}@db:5432/${POSTGRES_DB:-graphdb}
|
|
- API_KEY=${API_KEY:-nexstar_secret_key_123}
|
|
- ADMIN_EMAIL=${ADMIN_EMAIL:-admin@admin.com}
|
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
|
|
- JWT_SECRET=${JWT_SECRET:-super_secret_jwt_key_123}
|
|
- N8N_WHATSAPP_TRIGGER_URL=${N8N_WHATSAPP_TRIGGER_URL:-http://localhost:5678/webhook/whatsapp}
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
image: gitea.blyzer.com.br/blyzer/graphs-frontend:latest
|
|
container_name: graph_frontend
|
|
ports:
|
|
- "3005:80"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
pgdata:
|