File tree Expand file tree Collapse file tree
docker/files/etc/nginx/conf.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,34 +24,44 @@ services:
2424 ports :
2525 - " 1081:1080"
2626
27- minio :
27+ rustfs :
2828 user : ${DOCKER_USER:-1000}
29- image : minio/minio
29+ image : rustfs/rustfs:latest
3030 environment :
31- - MINIO_ROOT_USER=impress
32- - MINIO_ROOT_PASSWORD=password
31+ - RUSTFS_ACCESS_KEY=rustfsadmin
32+ - RUSTFS_SECRET_KEY=rustfsadmin
33+ - RUSTFS_CONSOLE_ENABLE=true
34+ - RUSTFS_ADDRESS=0.0.0.0:9000
35+ - RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
36+ - RUSTFS_CORS_ALLOWED_ORIGINS=*
37+ - RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
3338 ports :
3439 - " 9000:9000"
3540 - " 9001:9001"
3641 healthcheck :
37- test : ["CMD", "mc", "ready", "local"]
38- interval : 1s
39- timeout : 20s
40- retries : 300
41- entrypoint : " "
42- command : minio server --console-address :9001 /data
42+ test :
43+ [
44+ " CMD" ,
45+ " sh" ,
46+ " -c" ,
47+ " curl -f http://127.0.0.1:9000/health && curl -f http://127.0.0.1:9001/rustfs/console/health" ,
48+ ]
49+ interval : 30s
50+ timeout : 10s
51+ retries : 3
52+ start_period : 40s
4353 volumes :
4454 - ./data/media:/data
4555
4656 createbuckets :
4757 image : minio/mc
4858 depends_on :
49- minio :
59+ rustfs :
5060 condition : service_healthy
5161 restart : true
5262 entrypoint : >
5363 sh -c "
54- /usr/bin/mc alias set impress http://minio :9000 impress password && \
64+ /usr/bin/mc alias set impress http://rustfs :9000 rustfsadmin rustfsadmin && \
5565 /usr/bin/mc mb impress/impress-media-storage && \
5666 /usr/bin/mc version enable impress/impress-media-storage && \
5767 exit 0;"
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ server {
1717 proxy_set_header X-Amz-Date $authDate;
1818 proxy_set_header X-Amz-Content-SHA256 $authContentSha256;
1919
20- # Get resource from Minio
21- proxy_pass http://minio :9000/impress-media-storage/;
22- proxy_set_header Host minio :9000;
20+ # Get resource from rustfs
21+ proxy_pass http://rustfs :9000/impress-media-storage/;
22+ proxy_set_header Host rustfs :9000;
2323
2424 add_header Content-Security-Policy "default-src 'none'" always;
2525 }
@@ -30,7 +30,7 @@ server {
3030 proxy_set_header X-Real-IP $remote_addr;
3131 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3232 proxy_set_header X-Original-URL $request_uri;
33-
33+
3434 # Prevent the body from being passed
3535 proxy_pass_request_body off;
3636 proxy_set_header Content-Length "";
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ IMPRESS_BASE_URL="http://localhost:8072"
2727
2828# Media
2929STORAGES_STATICFILES_BACKEND=django.contrib.staticfiles.storage.StaticFilesStorage
30- AWS_S3_ENDPOINT_URL=http://minio :9000
31- AWS_S3_ACCESS_KEY_ID=impress
32- AWS_S3_SECRET_ACCESS_KEY=password
30+ AWS_S3_ENDPOINT_URL=http://rustfs :9000
31+ AWS_S3_ACCESS_KEY_ID=rustfsadmin
32+ AWS_S3_SECRET_ACCESS_KEY=rustfsadmin
3333MEDIA_BASE_URL=http://localhost:8083
3434
3535# OIDC
You can’t perform that action at this time.
0 commit comments