-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (74 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (74 loc) · 1.71 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
nginx:
image: nginx:alpine
container_name: nginx
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- lab
ports:
- "80:80"
depends_on:
- jupyterhub
#- ollama
#- chat
restart: unless-stopped
jupyterhub:
build:
context: .
dockerfile: Dockerfile
container_name: jupyterhub
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /etc/shadow:/etc/shadow:ro
- /home:/home
- ./jupyterhub:/srv/jupyterhub
- /var/run/docker.sock:/var/run/docker.sock
networks:
- lab
expose:
- "8000"
restart: unless-stopped
environment:
# This username will be a JupyterHub admin
JUPYTERHUB_ADMIN: admin
# All containers will join this network
DOCKER_NETWORK_NAME: lab
# JupyterHub will spawn this Notebook image for users
DOCKER_NOTEBOOK_IMAGE: quay.io/jupyter/pytorch-notebook:cuda12-python-3.12
user: root
# ollama:
# image: ollama/ollama
# container_name: ollama
# networks:
# - lab
# expose:
# - "11434"
# volumes:
# - ollama_data:/home/ollama
# deploy:
# resources:
# reservations:
# devices:
# - capabilities: [gpu]
# runtime: nvidia
# restart: unless-stopped
# chat:
# image: ghcr.io/open-webui/open-webui:main
# container_name: chat
# environment:
# - OLLAMA_API_BASE_URL=http://ollama:11434
# - WEBUI_BASE_URL=/chat/
# networks:
# - lab
# expose:
# - "8080"
# depends_on:
# - ollama
# restart: unless-stopped
# volumes:
# ollama_data:
networks:
lab:
name: lab