Files
scoreodonto.com/docker-compose.yml
T
VPS 4 Builder adf96002b6 feat: versionamento visível (rodapé + /api/version + carimbo no build)
- backend: endpoint GET /api/version + linha [VERSION] no boot (le APP_VERSION/GIT_COMMIT/BUILD_TIME/APP_ENV)
- frontend: buildInfo.ts le import.meta.env.VITE_* ; versão no rodapé do Sidebar
- Dockerfiles (front+back): ARG/ENV do carimbo de versão
- docker-compose.yml: build args (APP_VERSION/GIT_COMMIT/BUILD_TIME/APP_ENV) com defaults
- bump V1.0.12 -> V1.0.13

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 06:46:01 +02:00

79 lines
2.2 KiB
YAML

services:
nginx:
image: nginx:alpine
restart: always
ports:
- "8020:80"
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
labels:
- "traefik.enable=true"
# Roteador de Produção (scoreodonto.com)
- "traefik.http.routers.scoreodonto-prod.rule=Host(`scoreodonto.com`) || Host(`www.scoreodonto.com`)"
- "traefik.http.routers.scoreodonto-prod.entrypoints=websecure"
- "traefik.http.routers.scoreodonto-prod.tls.certresolver=le"
- "traefik.http.services.scoreodonto-prod.loadbalancer.server.port=80"
- "traefik.docker.network=web"
networks:
- soc
- web
depends_on:
- scoreodonto-backend
- scoreodonto-frontend
scoreodonto-backend:
build:
context: "./backend"
dockerfile: Dockerfile
args:
APP_VERSION: ${APP_VERSION:-dev}
GIT_COMMIT: ${GIT_COMMIT:-dev}
BUILD_TIME: ${BUILD_TIME:-}
APP_ENV: ${APP_ENV:-DEV}
restart: always
env_file:
- "./backend/.env"
environment:
- BAILEYS_ENGINE=infinite
- PORT=8018
- NODE_ENV=production
- DATABASE_URL=postgresql://scoreodonto_user:clube67_scoreodonto_pass_9903@10.99.0.3:5432/scoreodonto?schema=public
- DRAGONFLY_URL=redis://:clube67_dragonfly_pass_9903@10.99.0.3:6379/1
- NATS_URL=nats://10.99.0.3:4222
- TEMPORAL_ADDRESS=10.99.0.3:7233
- BAILEYS_SESSIONS_PATH=/app/sessions
- APP_URL=https://scoreodonto.com
- GOOGLE_REDIRECT_URI=https://scoreodonto.com/api/oauth2callback
volumes:
- "/home/deploy/scoreodonto-sessions:/app/sessions"
- "/home/deploy/scoreodonto-media:/app/media"
- "./plugins:/app/plugins"
networks:
- soc
- web
scoreodonto-frontend:
build:
context: "."
dockerfile: frontend/Dockerfile
args:
GIT_COMMIT: ${GIT_COMMIT:-dev}
BUILD_TIME: ${BUILD_TIME:-}
APP_ENV: ${APP_ENV:-DEV}
restart: always
env_file:
- "./frontend/.env.production.local"
environment:
- PORT=3013
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=https://scoreodonto.com/api
networks:
- soc
- web
networks:
soc:
external: true
web:
external: true