-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.01 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
services:
fastapi:
build:
context: .
dockerfile: Dockerfile
container_name: fastapi
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./:/app
networks:
- custom_network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: "all"
capabilities: [gpu]
proxy:
image: nginx:latest
container_name: proxy
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- fastapi
- storage
networks:
- custom_network
storage:
image: minio/minio:latest
container_name: storage
environment:
MINIO_ROOT_USER: "minioadmin"
MINIO_ROOT_PASSWORD: "minioadminpassword"
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
networks:
- custom_network
networks:
custom_network:
driver: bridge
volumes:
minio_data: