-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
74 lines (60 loc) · 1.35 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
72
73
74
version: '3'
services:
redis:
image: redis:7
container_name: redis
ports:
- "6379:6379"
minio:
image: quay.io/minio/minio
container_name: minio
command: server --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=user
- MINIO_ROOT_PASSWORD=password
api:
build:
context: .
dockerfile: docker/api/Dockerfile
container_name: api
depends_on:
- redis
- minio
ports:
- "3000:3000"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MINIO_ENDPOINT=minio
- MINIO_PORT=9000
- MINIO_ACCESS_KEY=user
- MINIO_SECRET_KEY=password
- APP_SECRET=7d0d390066a20491ce2c259dc855ed8c
volumes:
- ./packages/api/src:/app/packages/api/src
worker:
build:
context: .
dockerfile: docker/worker/Dockerfile
container_name: worker
depends_on:
- redis
- minio
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MINIO_ENDPOINT=minio
- MINIO_PORT=9000
- MINIO_ACCESS_KEY=user
- MINIO_SECRET_KEY=password
volumes:
- ./packages/worker/src:/app/packages/worker/src
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]