-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
59 lines (59 loc) · 1.04 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
version: '3.8'
services:
etl:
container_name: etl
build: .
command: python etl.py
env_file:
- .env
depends_on:
- minio
networks:
- app-net
trainer:
container_name: trainer
build: .
command: python trainer.py
env_file:
- .env
depends_on:
- minio
networks:
- app-net
fastapi:
container_name: api
restart: "always"
env_file:
- .env
build: .
depends_on:
- minio
- etl
- trainer
networks:
- app-net
command: uvicorn app:app --host=0.0.0.0 --reload
ports:
- 8000:8000
minio:
image: minio/minio
container_name: minio
command: "server /data --console-address ':9001'"
environment:
MINIO_ROOT_USER: ${S3_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${S3_SECRET_KEY}
ports:
- 9000:9000
- 9001:9001
networks:
- app-net
volumes:
- ./data/minio-data:/data
volumes:
cache:
driver: local
minio-data:
driver: local
networks:
app-net:
driver: bridge