Merge pull request #164 from yaso-meth/QOL--Docker-Compose-Update
ai gpu enable
This commit is contained in:
@@ -97,7 +97,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- MIH-network
|
- MIH-network
|
||||||
profiles: [ 'prod' ]
|
profiles: [ 'prod' ]
|
||||||
#============== Flutter App ====================================================================
|
#============== MIH-UX Flutter ====================================================================
|
||||||
user-interface:
|
user-interface:
|
||||||
container_name: MIH-UX
|
container_name: MIH-UX
|
||||||
build:
|
build:
|
||||||
@@ -108,7 +108,7 @@ services:
|
|||||||
- MIH-network
|
- MIH-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
#============== Cert Not ====================================================================
|
#============== Cert Bot ====================================================================
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
container_name: certbot
|
container_name: certbot
|
||||||
@@ -116,7 +116,7 @@ services:
|
|||||||
- certbotConf:/etc/letsencrypt
|
- certbotConf:/etc/letsencrypt
|
||||||
- certbotChall:/var/www/certbot
|
- certbotChall:/var/www/certbot
|
||||||
#command: certonly --test-cert --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
#command: certonly --test-cert --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d mzansi-innovation-hub.co.za -d www.mzansi-innovation-hub.co.za --agree-tos
|
||||||
command: certonly --webroot -w /var/www/certbot --force-renewal --email yasienmeth@gmail.com -d app.mzansi-innovation-hub.co.za -d api.mzansi-innovation-hub.co.za -d minio.mzansi-innovation-hub.co.za -d monitor.mzansi-innovation-hub.co.za -d ai.mzansi-innovation-hub.co.za --agree-tos
|
command: certonly --webroot -w /var/www/certbot --force-renewal --email ${CERTBOT_EMAIL} -d ${CERTBOT_APP_DOMAIN} -d ${CERTBOT_API_DOMAIN} -d ${CERTBOT_STORAGE_DOMAIN} -d ${CERTBOT_MONITOR_DOMAIN} -d ${CERTBOT_AI_DOMAIN} --agree-tos
|
||||||
networks:
|
networks:
|
||||||
- MIH-network
|
- MIH-network
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -138,7 +138,7 @@ services:
|
|||||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PW}
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PW}
|
||||||
networks:
|
networks:
|
||||||
- MIH-network
|
- MIH-network
|
||||||
#============== Minio File Storage ====================================================================
|
#============== MIH-Monitor Portainer ====================================================================
|
||||||
portainer:
|
portainer:
|
||||||
container_name: MIH-Monitor
|
container_name: MIH-Monitor
|
||||||
image: portainer/portainer-ce:2.20.3
|
image: portainer/portainer-ce:2.20.3
|
||||||
@@ -150,7 +150,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- MIH-network
|
- MIH-network
|
||||||
#============== Minio File Storage ====================================================================
|
#============== MIH-AI Ollama ====================================================================
|
||||||
ollama:
|
ollama:
|
||||||
container_name: MIH-AI
|
container_name: MIH-AI
|
||||||
image: ollama/ollama:latest
|
image: ollama/ollama:latest
|
||||||
@@ -168,26 +168,35 @@ services:
|
|||||||
- OLLAMA_HOST=0.0.0.0
|
- OLLAMA_HOST=0.0.0.0
|
||||||
networks:
|
networks:
|
||||||
- MIH-network
|
- MIH-network
|
||||||
#============== Firebaase ====================================================================
|
# === Added section for NVIDIA GPU acceleration ===
|
||||||
# firebase:
|
# runtime: nvidia
|
||||||
# container_name: MIH-firebase-emulator
|
# deploy:
|
||||||
# build:
|
# resources:
|
||||||
# context: ./Firebase-emulator
|
# reservations:
|
||||||
# environment:
|
# devices:
|
||||||
# DATA_DIRECTORY: "firebase/data"
|
# - driver: nvidia
|
||||||
# FIREBASE_PROJECT: "mzansi-innovation-hub"
|
# count: all # or specify a number of GPUs
|
||||||
# ports:
|
# capabilities: [ gpu ]
|
||||||
# - 8082:8080 # FIRESTORE_PORT
|
#============== Firebaase ====================================================================
|
||||||
# - 5005:5005 # FIRESTORE_WS_PORT
|
# firebase:
|
||||||
# - 4000:4000 # UI_PORT
|
# container_name: MIH-firebase-emulator
|
||||||
# - 9099:9099 # AUTH_PORT
|
# build:
|
||||||
# - 5000:6001 # Hosting
|
# context: ./Firebase-emulator
|
||||||
# volumes:
|
# environment:
|
||||||
# - ./Firebase-emulator:/srv/firebase:rw
|
# DATA_DIRECTORY: "firebase/data"
|
||||||
# # - ./cache:/root/.cache/:rw
|
# FIREBASE_PROJECT: "mzansi-innovation-hub"
|
||||||
# # - ~/.config/:/root/.config
|
# ports:
|
||||||
# - ./Firebase-emulator/firebase/data:/srv/firebase/data:rw
|
# - 8082:8080 # FIRESTORE_PORT
|
||||||
#============== Named Volumes ====================================================================
|
# - 5005:5005 # FIRESTORE_WS_PORT
|
||||||
|
# - 4000:4000 # UI_PORT
|
||||||
|
# - 9099:9099 # AUTH_PORT
|
||||||
|
# - 5000:6001 # Hosting
|
||||||
|
# volumes:
|
||||||
|
# - ./Firebase-emulator:/srv/firebase:rw
|
||||||
|
# # - ./cache:/root/.cache/:rw
|
||||||
|
# # - ~/.config/:/root/.config
|
||||||
|
# - ./Firebase-emulator/firebase/data:/srv/firebase/data:rw
|
||||||
|
#============== Named Volumes ====================================================================
|
||||||
volumes:
|
volumes:
|
||||||
certbotConf:
|
certbotConf:
|
||||||
certbotChall:
|
certbotChall:
|
||||||
|
|||||||
Reference in New Issue
Block a user