docker-compose.minio.yml -rw-r--r-- 1.6 KiB
1# Copy this file to another location and modify as necessary.
2version: "3"
3services:
4 minio:
5 image: minio/minio:latest
6 ports:
7 - "9000:9000"
8 volumes:
9 - miniodata:/data
10 environment:
11 # force using given key-secret instead of creating at start
12 - MINIO_ACCESS_KEY=${AWS_ACCESS_KEY_ID}
13 - MINIO_SECRET_KEY=${AWS_SECRET_ACCESS_KEY}
14 command: ["server", "/data"]
15 app:
16 image: jasonwhite0/rudolfs:latest
17 # build:
18 # context: .
19 # dockerfile: Dockerfile
20 ports:
21 - "8081:8080"
22 volumes:
23 - data:/data
24 restart: always
25 environment:
26 - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
27 - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
28 - AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
29 - LFS_ENCRYPTION_KEY=${LFS_ENCRYPTION_KEY}
30 - LFS_S3_BUCKET=${LFS_S3_BUCKET}
31 - LFS_MAX_CACHE_SIZE=${LFS_MAX_CACHE_SIZE}
32 - AWS_S3_ENDPOINT=http://minio:9000
33 entrypoint:
34 - /tini
35 - --
36 - /rudolfs
37 - --cache-dir
38 - /data
39 - --key
40 - ${LFS_ENCRYPTION_KEY}
41 - --s3-bucket
42 - ${LFS_S3_BUCKET}
43 - --max-cache-size
44 - ${LFS_MAX_CACHE_SIZE}
45 links:
46 - minio
47 # A real production server should use nginx. How to configure this depends on
48 # your needs. Use your Google-search skills to configure this correctly.
49 #
50 # nginx:
51 # image: nginx:stable
52 # ports:
53 # - 80:80
54 # - 443:443
55 # volumes:
56 # - ./nginx.conf:/etc/nginx/nginx.conf
57 # - ./nginx/errors.log:/etc/nginx/errors.log
58
59volumes:
60 data:
61 miniodata: