Integrate new renderer via docker-compose configuration and nginx [skip ci]

This commit is contained in:
ErickSkrauch 2019-06-06 02:14:15 +03:00
parent 75fdd5d1ba
commit 7b14b92a10
3 changed files with 15 additions and 5 deletions

View File

@ -9,6 +9,7 @@ services:
build_env: dev
depends_on:
- app
- emails-renderer
env_file: .env
volumes:
- ./:/var/www/html
@ -62,6 +63,9 @@ services:
- ./:/var/www/html
env_file: .env
emails-renderer:
image: elyby/emails-renderer:dev
db:
build:
context: .

View File

@ -11,6 +11,7 @@ services:
restart: always
depends_on:
- app
- emails-renderer
env_file: .env
volumes:
- ./frontend:/var/www/html/frontend
@ -53,6 +54,10 @@ services:
env_file: .env
logging: *default-logging
emails-renderer:
image: elyby/emails-renderer:dev
logging: *default-logging
db:
image: registry.ely.by/elyby/accounts-mariadb:latest
restart: always

View File

@ -41,13 +41,14 @@ server {
try_files $uri /index.html =404;
}
location /api {
try_files $uri /api/index.php$is_args$args;
location /images/emails/assets {
proxy_pass http://emails-renderer:3000/assets/;
expires $cache_duration;
access_log off;
}
location /images/emails/assets {
alias '${root_path}/vendor/ely/email-renderer/dist/assets';
access_log off;
location /api {
try_files $uri /api/index.php$is_args$args;
}
location ~* \.php$ {