1 | # Copy this file to another location and modify as necessary. |
2 | version: "3" |
3 | services: |
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_ROOT_USER=${AWS_ACCESS_KEY_ID} |
13 | - MINIO_ROOT_PASSWORD=${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_REGION |
27 | - AWS_ACCESS_KEY_ID |
28 | - AWS_SECRET_ACCESS_KEY |
29 | - AWS_DEFAULT_REGION |
30 | - LFS_ENCRYPTION_KEY |
31 | - LFS_S3_BUCKET |
32 | - LFS_MAX_CACHE_SIZE |
33 | - AWS_S3_ENDPOINT=http://minio:9000 |
34 | entrypoint: |
35 | - /tini |
36 | - -- |
37 | - /rudolfs |
38 | - --cache-dir |
39 | - /data |
40 | - --key |
41 | - ${LFS_ENCRYPTION_KEY} |
42 | - --max-cache-size |
43 | - ${LFS_MAX_CACHE_SIZE} |
44 | - s3 |
45 | - --bucket |
46 | - ${LFS_S3_BUCKET} |
47 | links: |
48 | - minio |
49 | # A real production server should use nginx. How to configure this depends on |
50 | # your needs. Use your Google-search skills to configure this correctly. |
51 | # |
52 | # nginx: |
53 | # image: nginx:stable |
54 | # ports: |
55 | # - 80:80 |
56 | # - 443:443 |
57 | # volumes: |
58 | # - ./nginx.conf:/etc/nginx/nginx.conf |
59 | # - ./nginx/errors.log:/etc/nginx/errors.log |
60 | |
61 | volumes: |
62 | data: |
63 | miniodata: |