Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Console/Concerns/InteractsWithDockerComposeServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ trait InteractsWithDockerComposeServices
'meilisearch',
'typesense',
'minio',
'rustfs',
'mailpit',
'rabbitmq',
'selenium',
Expand Down Expand Up @@ -107,7 +108,7 @@ protected function buildDockerCompose(array $services)
// Merge volumes...
collect($services)
->filter(function ($service) {
return in_array($service, ['mysql', 'pgsql', 'mariadb', 'mongodb', 'redis', 'valkey', 'meilisearch', 'typesense', 'minio', 'rabbitmq']);
return in_array($service, ['mysql', 'pgsql', 'mariadb', 'mongodb', 'redis', 'valkey', 'meilisearch', 'typesense', 'minio', 'rustfs', 'rabbitmq']);
})->filter(function ($service) use ($compose) {
return ! array_key_exists($service, $compose['volumes'] ?? []);
})->each(function ($service) use (&$compose) {
Expand Down
31 changes: 31 additions & 0 deletions stubs/rustfs.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
rustfs:
image: 'rustfs/rustfs:latest'
ports:
- '${FORWARD_RUSTFS_PORT:-9000}:9000'
- '${FORWARD_RUSTFS_CONSOLE_PORT:-9001}:9001'
environment:
RUSTFS_VOLUMES: '/data'
RUSTFS_ADDRESS: '0.0.0.0:9000'
RUSTFS_CONSOLE_ADDRESS: '0.0.0.0:9001'
RUSTFS_CONSOLE_ENABLE: 'true'
RUSTFS_EXTERNAL_ADDRESS: ':9000'
RUSTFS_CORS_ALLOWED_ORIGINS: '*'
RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS: '*'
RUSTFS_ACCESS_KEY: 'sail'
RUSTFS_SECRET_KEY: 'password'
RUSTFS_LOG_LEVEL: 'info',
volumes:
- 'sail-rustfs:/data'
networks:
- sail
healthcheck:
test:
[
"CMD",
"sh", "-c",
"curl -f http://127.0.0.1:9000/health && curl -f http://127.0.0.1:9001/health"
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s