services: ollama: hostname: ollama container_name: ollama build: context: . dockerfile: Dockerfile.ollama image: ollama/ollama container_name: ollama ports: - "11434:11434" volumes: - ./data/ollama/history:/root/.ollama - ./data/ollama/models:/usr/share/ollama restart: unless-stopped matrix-chatbot: container_name: matrix-chatbot hostname: matrix-chatbot build: context: . dockerfile: Dockerfile.chatbot networks: dockernet: ipv4_address: 172.16.0.50 depends_on: - ollama volumes: - ./data/chatbot/config.json:/app/config.json:ro restart: unless-stopped networks: dockernet: external: true