-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 897 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (38 loc) · 897 Bytes
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
services:
minio:
image: minio/minio:latest
container_name: refrag-minio
ports:
- "9000:9000" # S3 API
- "9001:9001" # Web Console
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
restart: unless-stopped
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile
container_name: refrag-backend
ports:
- "8000:8000"
env_file:
- .env
environment:
# Point MinIO at the compose service, not localhost
MINIO_ENDPOINT: minio:9000
MINIO_SECURE: "false"
depends_on:
minio:
condition: service_healthy
restart: unless-stopped
volumes:
minio_data: