-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.ci.yml
More file actions
97 lines (87 loc) · 2.09 KB
/
docker-compose.ci.yml
File metadata and controls
97 lines (87 loc) · 2.09 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
94
95
96
97
# Ensure this launches a separate stack for CI testing to avoid conflicts with local dev setup:
name: antenna-ci
volumes:
ami_ci_postgres_data:
driver: local
minio_ci_data:
driver: local
services:
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
volumes:
- .:/app:z
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- postgres
- redis
- minio-init
- ml_backend
- rabbitmq
- nats
env_file:
- ./.envs/.ci/.django
- ./.envs/.ci/.postgres
command: /start
postgres:
build:
context: .
dockerfile: ./compose/local/postgres/Dockerfile
volumes:
- ami_ci_postgres_data:/var/lib/postgresql/data
env_file:
- ./.envs/.ci/.postgres
redis:
image: redis:6
nats:
image: nats:2.10-alpine
container_name: ami_ci_nats
hostname: nats
command: ["-js", "-m", "8222"] # Enable JetStream and monitoring
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8222/healthz"]
interval: 10s
timeout: 5s
retries: 3
celeryworker:
<<: *django
depends_on:
- rabbitmq
command: /start-celeryworker
rabbitmq:
image: rabbitmq:3-management
env_file:
- ./.envs/.ci/.django
minio:
image: minio/minio:RELEASE.2024-11-07T00-52-20Z
command: minio server --console-address ":9001" /data
volumes:
- "minio_ci_data:/data"
env_file:
- ./.envs/.ci/.django
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
minio-init:
image: minio/mc:RELEASE.2025-03-12T17-29-24Z
env_file:
- ./.envs/.ci/.django
depends_on:
minio:
condition: service_healthy
volumes:
- ./compose/local/minio/init.sh:/etc/minio/init.sh
entrypoint: /etc/minio/init.sh
ml_backend:
build:
context: ./processing_services/minimal
volumes:
- ./processing_services/minimal/:/app
networks:
default:
aliases:
- processing_service