Atualizar compose.yml

This commit is contained in:
2026-08-19 20:28:20 -03:00
parent 1af414fa43
commit 9b6f40a728
+9 -3
View File
@@ -8,17 +8,19 @@ services:
- .env - .env
depends_on: depends_on:
- db - db
restart: unless-stopped
web: web:
build: ./web build: ./web
container_name: web container_name: web
ports: ports:
- "3000:3000" - "3000:3000"
restart: unless-stopped
db: db:
image: postgres:15 image: postgres:15
container_name: db container_name: db
restart: always restart: unless-stopped
environment: environment:
- POSTGRES_USER=${POSTGRES_USER} - POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
@@ -33,5 +35,9 @@ services:
- "11434:11434" - "11434:11434"
volumes: volumes:
- ./gendata:/root/.ollama - ./gendata:/root/.ollama
restart: always restart: unless-stopped
deploy:
resources:
reservations:
devices:
- capabilities: ["gpu"]