ssl / tsl and storage of document
This commit is contained in:
@@ -6,13 +6,19 @@ services:
|
||||
- app:php
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.frontend-{{ item.chill_environment }}.rule=Host(`{{ item.host }}`)"
|
||||
- "traefik.http.routers.frontend-{{ item.chill_environment }}.entrypoints=web"
|
||||
- "traefik.docker.network=traefik"
|
||||
{% if item.expose_port is not false -%}
|
||||
ports:
|
||||
- "{{ item.expose_port }}:80"
|
||||
{% endif -%}
|
||||
- "traefik.http.routers.frontend-{{ item.chill_environment }}.rule=Host(`{{ item.host }}`)"
|
||||
- "traefik.http.routers.frontend-{{ item.chill_environment }}.entrypoints=websecure"
|
||||
{%+ if item.tls_config == 'self_signed' +%}
|
||||
- "traefik.http.routers.frontend-{{ item.chill_environment }}.tls=true"
|
||||
{%+ endif +%}
|
||||
{%+ if item.expose_port is not false +%}
|
||||
- "traefik.http.routers.frontend-exp-{{ item.chill_environment }}.rule=PathPrefix(`/`)"
|
||||
- "traefik.http.routers.frontend-exp-{{ item.chill_environment }}.entrypoints=chill{{ item.chill_environment }}"
|
||||
{%+ if item.tls_config == 'self_signed' +%}
|
||||
- "traefik.http.routers.frontend-exp-{{ item.chill_environment }}.tls=true"
|
||||
{%+ endif +%}
|
||||
{%+ endif +%}
|
||||
networks:
|
||||
- traefik
|
||||
- default
|
||||
@@ -25,6 +31,7 @@ services:
|
||||
- './config/prod:/var/www/app/config/packages/prod:ro'
|
||||
- './var:/var/www/app/var:rw'
|
||||
- '/var/logs/chill:/var/www/app/logs'
|
||||
- '{{ doc_storage_dir }}/{{ item['chill_environment'] }}:/var/storage'
|
||||
links:
|
||||
- redis
|
||||
- relatorio
|
||||
|
Reference in New Issue
Block a user