mirror of
https://github.com/elyby/accounts.git
synced 2025-01-11 14:32:12 +05:30
Integrate new renderer via docker-compose configuration and nginx [skip ci]
This commit is contained in:
parent
75fdd5d1ba
commit
7b14b92a10
@ -9,6 +9,7 @@ services:
|
|||||||
build_env: dev
|
build_env: dev
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
|
- emails-renderer
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/var/www/html
|
- ./:/var/www/html
|
||||||
@ -62,6 +63,9 @@ services:
|
|||||||
- ./:/var/www/html
|
- ./:/var/www/html
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|
||||||
|
emails-renderer:
|
||||||
|
image: elyby/emails-renderer:dev
|
||||||
|
|
||||||
db:
|
db:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
@ -11,6 +11,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
|
- emails-renderer
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/var/www/html/frontend
|
- ./frontend:/var/www/html/frontend
|
||||||
@ -53,6 +54,10 @@ services:
|
|||||||
env_file: .env
|
env_file: .env
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
|
|
||||||
|
emails-renderer:
|
||||||
|
image: elyby/emails-renderer:dev
|
||||||
|
logging: *default-logging
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: registry.ely.by/elyby/accounts-mariadb:latest
|
image: registry.ely.by/elyby/accounts-mariadb:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -41,13 +41,14 @@ server {
|
|||||||
try_files $uri /index.html =404;
|
try_files $uri /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api {
|
location /images/emails/assets {
|
||||||
try_files $uri /api/index.php$is_args$args;
|
proxy_pass http://emails-renderer:3000/assets/;
|
||||||
|
expires $cache_duration;
|
||||||
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /images/emails/assets {
|
location /api {
|
||||||
alias '${root_path}/vendor/ely/email-renderer/dist/assets';
|
try_files $uri /api/index.php$is_args$args;
|
||||||
access_log off;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user