-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.ci.yml
52 lines (46 loc) · 1022 Bytes
/
docker-compose.ci.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
services:
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: ami_ci_django
depends_on:
- postgres
- redis
- minio-init
- ml_backend
env_file:
- ./.envs/.ci/.django
- ./.envs/.ci/.postgres
command: /start
postgres:
image: postgres:13
env_file:
- ./.envs/.ci/.postgres
redis:
image: redis:6
celeryworker:
<<: *django
image: ami_ci_celeryworker
command: /start-celeryworker
minio:
image: minio/minio:latest
command: minio server --console-address ":9001" /data
env_file:
- ./.envs/.ci/.django
minio-init:
image: minio/mc
env_file:
- ./.envs/.ci/.django
depends_on:
- minio
volumes:
- ./compose/local/minio/init.sh:/etc/minio/init.sh
entrypoint: /etc/minio/init.sh
ml_backend:
build:
context: ./ml_backends/example
volumes:
- ./ml_backends/example/:/app:ml_backend
ports:
- "2000:2000"