-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (48 loc) · 1.2 KB
/
docker-compose.yaml
File metadata and controls
48 lines (48 loc) · 1.2 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
services:
# web:
# build: .
# # volumes:
# # - type: bind
# # source: .
# # target: /app
# ports:
# - "4000:4000"
# environment:
# - RELEASE_DISTRIBUTION=web-1
# - POD_IP=localhost
# - DATABASE_URL=postgresql://postgres:postgres@db/tr_dev
# - SECRET_KEY_BASE="z0OiA5F+dY+TmM84E+Cl0/BzJETmpoV/uxX1GccnAnINMIj61NA8nGZFkJLA0hdG"
# - PHX_HOST=localhost
# - MIX_ENV=dev
# depends_on:
# - db
db:
image: postgres:14.5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tr_dev
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
ollama:
image: ollama/ollama:latest
restart: always
volumes:
- ollama:/root/.ollama
ports:
- 11434:11434
# requires nvidia-container-toolkit
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
pgdata:
ollama: