mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 22:00:06 +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
|
||||
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: .
|
||||
|
@ -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
|
||||
|
@ -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$ {
|
||||
|
Loading…
Reference in New Issue
Block a user