-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (87 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
93 lines (87 loc) · 2.06 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
88
89
90
91
92
93
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: scout
POSTGRES_PASSWORD: scout
POSTGRES_DB: scout
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U scout -d scout"]
interval: 3s
timeout: 3s
retries: 20
qdrant:
image: qdrant/qdrant:v1.12.5
ports:
- "6333:6333"
volumes:
- qdrant:/qdrant/storage
api:
build:
context: .
dockerfile: infra/docker/Dockerfile
target: dev
command: uvicorn scout_api.main:app --host 0.0.0.0 --port 8000 --reload
environment:
DATABASE_URL: postgresql+psycopg://scout:scout@postgres:5432/scout
QDRANT_URL: http://qdrant:6333
env_file:
- path: .env
required: false
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
worker:
build:
context: .
dockerfile: infra/docker/Dockerfile
target: dev
command: python -m scout_worker
environment:
DATABASE_URL: postgresql+psycopg://scout:scout@postgres:5432/scout
QDRANT_URL: http://qdrant:6333
env_file:
- path: .env
required: false
volumes:
- .:/app
depends_on:
postgres:
condition: service_healthy
fixtures:
image: nginx:1.27-alpine
volumes:
- ./apps/fixtures/site:/usr/share/nginx/html:ro
ports:
- "8080:80"
web:
build:
context: .
dockerfile: infra/docker/Dockerfile.web
args:
NEXT_PUBLIC_API_URL: http://localhost:8000
NEXT_PUBLIC_SENTRY_DSN: ${SENTRY_DSN_NEXT:-}
image: scout-web
environment:
# Server side calls stay on the compose network; NEXT_PUBLIC_API_URL is the
# browser's view of the same API.
API_URL: http://api:8000
APP_URL: http://localhost:3000
env_file:
- path: .env
required: false
ports:
- "3000:3000"
depends_on:
- api
volumes:
pgdata:
qdrant: