sistema creado v0.5.0
This commit is contained in:
@@ -1,61 +1,50 @@
|
||||
version: '3.8'
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: planilla-db
|
||||
image: postgres:15
|
||||
environment:
|
||||
POSTGRES_USER: usuario
|
||||
POSTGRES_PASSWORD: clave
|
||||
POSTGRES_DB: midb
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- app-net
|
||||
agent:
|
||||
image: gitea.interno.com/nucleo000/planilla-agent:latest
|
||||
build: ./agent
|
||||
restart: unless-stopped
|
||||
networks: [planilla]
|
||||
|
||||
api:
|
||||
container_name: planilla-api
|
||||
image: gitea.interno.com/nucleo000/planilla-api:latest
|
||||
restart: unless-stopped
|
||||
build: ./api
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
DB_HOST: db
|
||||
DB_USER: usuario
|
||||
DB_PASSWORD: clave
|
||||
DB_NAME: midb
|
||||
expose:
|
||||
- "4000"
|
||||
networks:
|
||||
- app-net
|
||||
|
||||
ui:
|
||||
container_name: planilla-ui
|
||||
build: ./ui
|
||||
depends_on:
|
||||
- api
|
||||
expose:
|
||||
- "80"
|
||||
networks:
|
||||
- app-net
|
||||
- principal
|
||||
|
||||
env_file: .env
|
||||
depends_on: [db]
|
||||
networks: [principal, planilla]
|
||||
|
||||
mcp:
|
||||
container_name: planilla-mcp
|
||||
image: gitea.interno.com/nucleo000/planilla-mcp:latest
|
||||
build: ./mcp
|
||||
depends_on:
|
||||
- api
|
||||
expose:
|
||||
- "5000"
|
||||
networks:
|
||||
- app-net
|
||||
networks: [principal, planilla]
|
||||
|
||||
ui:
|
||||
image: gitea.interno.com/nucleo000/planilla-ui:latest
|
||||
build: ./ui
|
||||
restart: unless-stopped
|
||||
ports: ["3008:80"]
|
||||
networks: [planilla]
|
||||
|
||||
worker:
|
||||
image: gitea.interno.com/nucleo000/planilla-worker:latest
|
||||
build: ./worker
|
||||
depends_on: [db]
|
||||
networks: [planilla]
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_DB: planilla_db
|
||||
POSTGRES_USER: planilla
|
||||
POSTGRES_PASSWORD: secret
|
||||
volumes: [db_data:/var/lib/postgresql/data]
|
||||
networks: [planilla]
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
networks:
|
||||
app-net:
|
||||
driver: bridge
|
||||
principal:
|
||||
external: true
|
||||
planilla:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user