1
0
Fork 0
chat-access/_deployment/docker-compose-services.yaml

39 lines
826 B
YAML
Raw Permalink Normal View History

2024-11-10 14:13:48 +00:00
services:
keycloak:
image: quay.io/keycloak/keycloak:26.0
command: start-dev --import-realm
ports:
- 7080:8080
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin1
- KC_HOSTNAME_STRICT_HTTPS=false
volumes:
- ./keycloak-import:/opt/keycloak/data/import
chat-access-postgres:
image: postgres:17
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=chat-access
ports:
- 5432:5432
volumes:
- chat-access-db:/var/lib/postgresql/data
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
volumes:
- ~/.ollama:/root/.ollama/
deploy:
resources:
reservations:
devices:
- capabilities: ["gpu"]
volumes:
chat-access-db: