-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (47 loc) · 1019 Bytes
/
docker-compose.yaml
File metadata and controls
47 lines (47 loc) · 1019 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
41
42
43
44
45
46
47
version: '3'
services:
rustfs:
image: rustfs/rustfs
restart: always
logging: &logging
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
ports:
- "${APP_HOST}:9000:9000"
- "${APP_HOST}:9001:9001"
environment:
RUSTFS_ACCESS_KEY: ${S3_ACCESS_KEY}
RUSTFS_SECRET_KEY: ${S3_SECRET_KEY}
volumes:
- ./rustfs-data:/data
profiles:
- rustfs
rustfs-volume-permission-helper:
image: alpine
volumes:
- ./rustfs-data:/data
command: >
sh -c "
chown -R 10001:10001 /data &&
echo 'Volume Permissions fixed' &&
exit 0
"
restart: "no"
profiles:
- rustfs
minio:
image: minio/minio
restart: always
logging: *logging
environment:
MINIO_ACCESS_KEY: ${S3_ACCESS_KEY}
MINIO_SECRET_KEY: ${S3_SECRET_KEY}
ports:
- "${APP_HOST}:9000:9000"
volumes:
- ./minio-data:/data
command: 'server /data'
profiles:
- minio