Skip to content

Commit 84a1f7a

Browse files
Koenraad VerheydenJoshua Nelson
authored andcommitted
Add minio container to mock s3 #463
1 parent 1b47c15 commit 84a1f7a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
build: .
55
depends_on:
66
- db
7+
- s3
78
ports:
89
- "3000:3000"
910
volumes:
@@ -13,6 +14,9 @@ services:
1314
environment:
1415
CRATESFYI_RUSTWIDE_WORKSPACE: /opt/docsrs/rustwide
1516
CRATESFYI_DATABASE_URL: postgresql://cratesfyi:password@db
17+
S3_ENDPOINT: http://s3:9000
18+
AWS_ACCESS_KEY_ID: cratesfyi
19+
AWS_SECRET_ACCESS_KEY: secret_key
1620
env_file:
1721
- .env
1822
db:
@@ -22,6 +26,17 @@ services:
2226
environment:
2327
POSTGRES_USER: cratesfyi
2428
POSTGRES_PASSWORD: password
29+
s3:
30+
image: minio/minio
31+
command: server /data
32+
ports:
33+
- "9000:9000"
34+
volumes:
35+
- minio-data:/data
36+
environment:
37+
MINIO_ACCESS_KEY: cratesfyi
38+
MINIO_SECRET_KEY: secret_key
2539
volumes:
2640
postgres-data: {}
41+
minio-data: {}
2742
cratesio-index: {}

0 commit comments

Comments
 (0)