forked from Esmail-ibraheem/nanograd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 983 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.8'
services:
nanograd:
build: .
container_name: nanograd_app
depends_on:
- ollama
environment:
# Define any environment variables your app needs
# Example:
# MODEL_PATH: /models/your_model
volumes:
# Mount volumes if necessary
# Example:
# - ./data:/app/data
networks:
- app-network
ports:
- "7860:7860" # Maps port 7860 of the container to port 7860 on the host
ollama:
image: ollama/ollama:latest
container_name: ollama_service
restart: unless-stopped
environment:
# Define any environment variables Ollama requires
# Example:
# OLLAMA_API_KEY: your_api_key
volumes:
# Mount volumes for Ollama models if necessary
# Example:
# - ./ollama_models:/models
networks:
- app-network
ports:
# Map Ollama's API port if needed
# Example:
# - "11434:11434"
networks:
app-network:
driver: bridge