-
Notifications
You must be signed in to change notification settings - Fork 10
/
compose.yaml
85 lines (76 loc) · 2.46 KB
/
compose.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Alexander Tebiev - https://github.com/beeyev/thumbor-s3-docker
#
# This file is for development purposes only.
# If you are looking for production implementation,
# take a look at this dir: `examples/read-from-S3-cache-to-S3`
#
services:
thumbor:
container_name: 'thumbor'
build:
dockerfile: ./docker/thumbor-7.7/slim-alpine.Dockerfile
context: ./
args:
- 'BUILDKIT_INLINE_CACHE=1'
- 'BUILD_DATE=${BUILD_DATE}'
tty: true
restart: unless-stopped
ports:
- '8888:8888'
environment:
- 'LOG_LEVEL=info'
- 'LOADER=thumbor_aws.loader'
- 'AWS_LOADER_REGION_NAME=local'
- 'AWS_LOADER_BUCKET_NAME=img'
- 'AWS_LOADER_S3_ACCESS_KEY_ID=admin'
- 'AWS_LOADER_S3_SECRET_ACCESS_KEY=12345678'
- 'AWS_LOADER_S3_ENDPOINT_URL=http://minio:9000/'
- 'RESULT_STORAGE=thumbor_aws.result_storage'
- 'AWS_RESULT_STORAGE_BUCKET_NAME=img-cache'
- 'AWS_RESULT_STORAGE_S3_ACCESS_KEY_ID=admin'
- 'AWS_RESULT_STORAGE_S3_SECRET_ACCESS_KEY=12345678'
- 'AWS_RESULT_STORAGE_S3_ENDPOINT_URL=http://minio:9000/'
# Result Storage prefix path
- 'AWS_RESULT_STORAGE_ROOT_PATH=rs'
- 'RESULT_STORAGE_STORES_UNSAFE=True'
- 'ALLOW_UNSAFE_URL=True'
- 'SECURITY_KEY=31337'
# Expiration in seconds of generated images in the result storage. (2629746 is a month is seconds)
- 'RESULT_STORAGE_EXPIRATION_SECONDS=2629746'
- 'QUALITY=80'
- 'RESPECT_ORIENTATION=True'
# Max AGE sent as a header for the image served by thumbor in seconds (86400 is a day of caching)
- 'MAX_AGE=86400'
- 'AUTO_PNG_TO_JPG=True'
- 'HTTP_LOADER_VALIDATE_CERTS=False'
depends_on:
- minio
networks:
- network1
# Do NOT use MINIO_DOMAIN or MINIO_SERVER_URL with Traefik.
# All Routing is done by proxy server (nginx, traefik), just tell minio where to redirect to.
# - MINIO_BROWSER_REDIRECT_URL=http://stash.localhost
minio:
image: bitnami/minio:latest
container_name: 'minio'
restart: unless-stopped
tty: true
environment:
- 'TZ=${TZ:-UTC}'
- 'MINIO_ROOT_USER=admin'
- 'MINIO_ROOT_PASSWORD=12345678'
- 'MINIO_DEFAULT_BUCKETS=img:none,img-cache:none'
- 'MINIO_BROWSER=on'
- 'CONSOLE_SECURE_TLS_REDIRECT=off'
ports:
- '9001:9001'
volumes:
- minio_data:/data
networks:
- network1
networks:
network1:
driver: bridge
volumes:
minio_data:
driver: local