-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.15 KB
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
services:
s3:
image: minio/minio:RELEASE.2025-04-08T15-41-24Z
entrypoint: sh -c "minio server /data --console-address ':9001'"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_DOMAIN: localhost
ports:
- 9000:9000
- 9001:9001
volumes:
- s3_data:/data
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
create_bucket_and_user:
image: minio/mc:RELEASE.2025-04-08T15-39-49Z
entrypoint: sh -c "mc config host add minio http://s3:9000 minio minio123 && mc mb minio/nx-cloud && mc anonymous set public minio/nx-cloud"
depends_on:
s3:
condition: service_healthy
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
cache_server:
build:
context: .
dockerfile: Dockerfile
depends_on:
create_bucket_and_user:
condition: service_completed_successfully
ports:
- 3000:3000
environment:
- S3_ENDPOINT_URL=http://s3:9000
env_file:
- .env.local
volumes:
s3_data: