1 | # Copy this file to another location and modify as necessary. |
2 | version: '3' |
3 | services: |
4 | app: |
5 | image: jasonwhite0/rudolfs:latest |
6 | #build: |
7 | # context: . |
8 | # dockerfile: Dockerfile |
9 | ports: |
10 | - "8081:8080" |
11 | volumes: |
12 | - data:/data |
13 | restart: always |
14 | environment: |
15 | - AWS_ACCESS_KEY_ID |
16 | - AWS_SECRET_ACCESS_KEY |
17 | - AWS_DEFAULT_REGION |
18 | - LFS_ENCRYPTION_KEY |
19 | - LFS_S3_BUCKET |
20 | - LFS_MAX_CACHE_SIZE |
21 | entrypoint: |
22 | - /tini |
23 | - -- |
24 | - /rudolfs |
25 | - --cache-dir |
26 | - /data |
27 | - --key |
28 | - ${LFS_ENCRYPTION_KEY} |
29 | - --port |
30 | - "8080" |
31 | - local |
32 | - --path=/data |
33 | |
34 | # A real production server should use nginx. How to configure this depends on |
35 | # your needs. Use your Google-search skills to configure this correctly. |
36 | # |
37 | # nginx: |
38 | # image: nginx:stable |
39 | # ports: |
40 | # - 80:80 |
41 | # - 443:443 |
42 | # volumes: |
43 | # - ./nginx.conf:/etc/nginx/nginx.conf |
44 | # - ./nginx/errors.log:/etc/nginx/errors.log |
45 | |
46 | |
47 | volumes: |
48 | data: |