mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-09-27 19:59:02 +00:00
231bbbfe99
Nginx and Caddy performed duplicate tasks. It was decided to get rid of the nginx container, for simplification. This is a breaking change for plugin developers. Also, applications that collect nginx logs will have to be modified. See: - Corresponding TEP: https://discuss.overhang.io/t/tep-get-rid-of-the-nginx-container/2024 - the prior discussion: https://discuss.overhang.io/t/why-caddy-nginx/1952
24 lines
817 B
YAML
24 lines
817 B
YAML
version: "3.7"
|
|
services:
|
|
# Web proxy for load balancing and SSL termination
|
|
caddy:
|
|
image: {{ DOCKER_IMAGE_CADDY }}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "{{ CADDY_HTTP_PORT }}:80"
|
|
{% if ENABLE_HTTPS and ENABLE_WEB_PROXY %}- "443:443"{% endif %}
|
|
volumes:
|
|
- ../apps/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
|
{% if ENABLE_HTTPS and ENABLE_WEB_PROXY %}- ../../data/caddy:/data{% endif %}
|
|
{% if not ENABLE_HTTPS %}
|
|
networks:
|
|
default:
|
|
# These aliases are for internal communication between containers when running locally
|
|
# with *.local.overhang.io hostnames.
|
|
aliases:
|
|
- "{{ LMS_HOST }}"
|
|
{{ patch("local-docker-compose-caddy-aliases")|indent(10) }}
|
|
{% endif %}
|
|
|
|
{{ patch("local-docker-compose-prod-services")|indent(2) }}
|