Files
planilla/docker-compose.yml
josedario87 3435f4fe68
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 12s
build-and-deploy / deploy (push) Successful in 26s
error en las enviroment variables de produccion
2025-06-11 23:30:23 -06:00

98 lines
2.3 KiB
YAML

version: "3.8"
services:
agent:
container_name: planilla-agent
image: gitea.interno.com/nucleo000/planilla-agent:latest
build: ./agent
environment:
- PORT=8012
- GEMINI_API_KEY= AIzaSyA9fI1mron-NVgghygu7B4sco7t6raXB8M
- MCP_URL= http:planilla-mcp:5000/mcp
restart: unless-stopped
networks: [planilla, principal]
api:
container_name: planilla-api
image: gitea.interno.com/nucleo000/planilla-api:latest
build: ./api
restart: unless-stopped
environment:
DATABASE_URL: "postgresql://planilla:secret@db:5432/planilla_db?schema=public"
CONVERSATION_LAYER_ROUTER_URL: 'http://whatsapp-router:3001'
depends_on:
- db
ports:
- "3009:4000"
networks: [planilla, principal]
ui:
container_name: planilla-ui
image: gitea.interno.com/nucleo000/planilla-ui:latest
build: ./ui
environment:
VITE_API_EVENTS_URL: https://planilla.interno.com/events
VITE_API_DB_URL: https://planilla.interno.com
VITE_CONVERSATION_LAYER_ROUTER_URL: 'https://conversation-layer.interno.com'
ports:
- "3008:80"
networks: [planilla, principal]
worker:
image: gitea.interno.com/nucleo000/planilla-worker:latest
build: ./worker
restart: unless-stopped
environment:
DATABASE_URL: "postgresql://planilla:secret@db:5432/planilla_db?schema=public"
depends_on:
- db
networks: [planilla]
mcp:
container_name: planilla-mcp
image: gitea.interno.com/nucleo000/planilla-mcp:latest
build: ./mcp
restart: unless-stopped
environment:
PLANILLA_API_URL: "http://planilla-api:4000"
depends_on:
- api
ports:
- "5010:5000"
networks: [planilla, principal]
db:
image: postgres:16
environment:
POSTGRES_DB: planilla_db
POSTGRES_USER: planilla
POSTGRES_PASSWORD: secret
volumes:
- /srv/planilla/db:/var/lib/postgresql/data
networks: [planilla]
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: planilla@planilla.com
PGADMIN_DEFAULT_PASSWORD: planilla
ports:
- "5050:80"
depends_on:
- db
volumes:
- /srv/planilla/pgadmin:/var/lib/pgadmin
user: "5050:5050"
networks: [planilla]
volumes:
db_data:
networks:
planilla:
principal:
external: true