-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (82 loc) · 2.35 KB
/
docker-compose.yml
File metadata and controls
87 lines (82 loc) · 2.35 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
81
82
83
84
85
86
87
services:
postgres:
image: pgrouting/pgrouting:16-3.5-4.0
container_name: strider-db
environment:
POSTGRES_DB: strider
POSTGRES_USER: strider_user
POSTGRES_PASSWORD: strider_password
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5434:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/scripts/init_db.sql:/docker-entrypoint-initdb.d/01_init_db.sql
- ./backend/scripts/install_pgrouting.sql:/docker-entrypoint-initdb.d/02_pgrouting.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U strider_user -d strider"]
interval: 10s
timeout: 5s
retries: 5
networks:
- strider-network
adminer:
image: adminer:latest
container_name: strider-adminer
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: postgres
depends_on:
- postgres
networks:
- strider-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: strider-backend
environment:
DATABASE_URL: postgresql://strider_user:strider_password@postgres:5432/strider
OLLAMA_BASE_URL: http://host.docker.internal:11434/v1
OLLAMA_MODEL: qwen2.5:1.5b
OVERPASS_CENTER_LAT: 43.4725
OVERPASS_CENTER_LNG: -80.5200
OVERPASS_RADIUS_M: 30000
ports:
- "8000:8000"
volumes:
- ./backend:/app
depends_on:
postgres:
condition: service_healthy
networks:
- strider-network
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
graph-init:
build:
context: ./backend
dockerfile: Dockerfile
container_name: strider-graph-init
profiles: ["manual"]
environment:
DATABASE_URL: postgresql://strider_user:strider_password@postgres:5432/strider
OVERPASS_URL: https://overpass-api.de/api/interpreter
OVERPASS_CENTER_LAT: 43.4725
OVERPASS_CENTER_LNG: -80.5200
OVERPASS_RADIUS_M: 30000
ROUTING_MIN_COMPONENT_NODES: 200
volumes:
- ./backend:/app
depends_on:
postgres:
condition: service_healthy
networks:
- strider-network
command: python scripts/ingest_pipeline.py
volumes:
postgres_data:
driver: local
networks:
strider-network:
driver: bridge