feat: sincronização de desenvolvimento local da VPS 4 para o Gitea
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# Roteador de Produção (clube67.com)
|
||||
- "traefik.http.routers.clube67-prod.rule=Host(`clube67.com`) || Host(`www.clube67.com`)"
|
||||
- "traefik.http.routers.clube67-prod.entrypoints=websecure"
|
||||
- "traefik.http.routers.clube67-prod.tls.certresolver=le"
|
||||
- "traefik.http.services.clube67-prod.loadbalancer.server.port=80"
|
||||
- "traefik.docker.network=web"
|
||||
networks:
|
||||
- soc
|
||||
- web
|
||||
depends_on:
|
||||
- newwhats-backend
|
||||
- newwhats-frontend
|
||||
|
||||
newwhats-backend:
|
||||
build:
|
||||
context: "./newwhats.local/backend"
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
env_file:
|
||||
- "./newwhats.local/backend/.env"
|
||||
environment:
|
||||
- BAILEYS_ENGINE=infinite
|
||||
- PORT=8008
|
||||
- NODE_ENV=production
|
||||
- DATABASE_URL=postgresql://newwhats:clube67_newwhats_pass_9903@10.99.0.3:5432/newwhats?schema=public
|
||||
- DRAGONFLY_URL=redis://:clube67_dragonfly_pass_9903@10.99.0.3:6379
|
||||
- NATS_URL=nats://10.99.0.3:4222
|
||||
- TEMPORAL_ADDRESS=10.99.0.3:7233
|
||||
- BAILEYS_SESSIONS_PATH=/app/sessions
|
||||
volumes:
|
||||
- "/home/deploy/newwhats-sessions:/app/sessions"
|
||||
- "/home/deploy/newwhats-media:/app/media"
|
||||
- "./newwhats.local/plugins:/app/plugins"
|
||||
networks:
|
||||
- soc
|
||||
- web
|
||||
|
||||
newwhats-frontend:
|
||||
build:
|
||||
context: "./newwhats.local/frontend"
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
env_file:
|
||||
- "./newwhats.local/frontend/.env.production.local"
|
||||
environment:
|
||||
- PORT=3003
|
||||
- NODE_ENV=production
|
||||
- NEXT_PUBLIC_API_URL=https://clube67.com/api
|
||||
networks:
|
||||
- soc
|
||||
- web
|
||||
|
||||
networks:
|
||||
soc:
|
||||
external: true
|
||||
web:
|
||||
external: true
|
||||
Reference in New Issue
Block a user