-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (71 loc) · 2.18 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
62
63
64
65
66
67
68
69
70
71
services:
rabbitmq:
image: rabbitmq:3.8-alpine
container_name: "rabbitmq_lightweight"
ports:
- "5672:5672"
- "15672:15672"
db:
image: pgvector/pgvector:pg14
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: seer
POSTGRES_DB: seer
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5433:5432"
test-db:
image: pgvector/pgvector:pg14
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: seer
POSTGRES_DB: seer
volumes:
- pgdata_test:/var/lib/postgresql/data
app:
build:
context: .
working_dir: /app
volumes:
- ./pyproject.toml:/app/pyproject.toml
- ./src:/app/src
- ./tests:/app/tests
- ./models:/app/models
- ./data/chroma:/app/data/chroma
- ~/.config/gcloud:/root/.config/gcloud
# Codecov test artifacts
- ./.artifacts:/app/.artifacts
healthcheck:
test: curl --fail http://localhost:9091/health/ready || exit 1
interval: 5s
retries: 3
timeout: 10s
depends_on:
- rabbitmq
- db
env_file:
- .env
environment:
- DEV=1
- AUTOFIX_ENABLED=1
- SEVERITY_ENABLED=1
- GROUPING_ENABLED=1
- ANOMALY_DETECTION_ENABLED=1
- CELERY_WORKER_ENABLE=true
- PORT=9091
- SMOKE_TEST=1
- SENTRY_BASE_URL=http://host.docker.internal:8000
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
- DATABASE_URL=postgresql+psycopg://root:seer@db/seer
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
- GOOGLE_CLOUD_PROJECT=ml-ai-420606
- USE_EU_REGION=0
- IGNORE_API_AUTH=1
ports:
- "9091:9091" # Local dev sentry app looks for port 9091 for the seer service.
volumes:
pgdata:
pgdata_test: