-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.41 KB
/
docker-compose.yml
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
---
services:
image_optimization:
# https://hub.docker.com/r/minimalcompact/thumbor
ports:
- "8705:80"
image: minimalcompact/thumbor:6.7.5
environment:
# The virtual host is used when we want to access our site via an
# Nginx Proxy locally; and is required by the script
# ./scripts/https-deploy.sh.
# See https://blog.dcycle.com/blog/2018-10-27 for details.
# See also https://blog.dcycle.com/blog/7f3ea9e1/
# See also https://blog.dcycle.com/blog/170a6078/
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_EMAIL: "letsencrypt@${VIRTUAL_HOST}"
# Specify the allowed source.
# See .env file
ALLOW_UNSAFE_URL: "$ALLOW_UNSAFE_URL"
ALLOWED_SOURCES: "$ALLOWED_SOURCES"
SECURITY_KEY: "$THUMBOR_SECURITY_KEY"
webserver:
image: httpd
ports:
- "8706:80"
volumes:
- "./website-with-large-image:/usr/local/apache2/htdocs/"
webserver_no_access:
image: httpd
ports:
- "8707:80"
volumes:
- "./website-with-large-image:/usr/local/apache2/htdocs/"
# Specifying the network name makes it predictable to other scripts, for
# example ./scripts/generated-image-map-test.sh expects the network to be
# named thumbor_example_default_network.
# See https://github.com/docker/compose/issues/3736.
networks:
default:
name: thumbor_example_default_network
external: true