-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.07 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
backend:
build: backend
ports:
- 8000:8000
volumes:
- ./backend:/backend
depends_on:
- ollama
- db
networks:
- testing-network
environment:
- DATABASE_URL=postgresql://postgres:password@db/magic_db
db:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: magic_db
volumes:
- pgdb:/var/lib/postgresql/data/
ports:
- 5432:5432
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 30s
timeout: 10s
retries: 5
networks:
- testing-network
frontend:
build: frontend
ports:
- 5173:5173
volumes:
- ./frontend:/frontend
depends_on:
- backend
networks:
- testing-network
ollama:
build: ollama
ports:
- 11434:11434
volumes:
- test-vol:/ollama
networks:
- testing-network
entrypoint: ['/usr/bin/bash', '/pull-llama3.sh']
networks:
testing-network:
driver: bridge
volumes:
test-vol:
pgdb: