-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 961 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 961 Bytes
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
version: "3.9"
services:
postgres:
image: postgres:15
container_name: postgres
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root123
POSTGRES_DB: classipy_database
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres-init:/docker-entrypoint-initdb.d
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: always
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
env_file:
- .env
command: ["serve"]
backend:
build: .
container_name: classipy_backend
restart: always
depends_on:
- postgres
- ollama
env_file: .env
ports:
- "8000:8000"
volumes:
- .:/app
command: bash -c "python src/database/test_db_connection.py && uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload"
volumes:
postgres_data:
ollama_data: