For Dev Environment
$ docker-compose up --build
-
Add new env NEW_DOMAIN into env/dev.env
-
Use new env in nginx.conf.tmpl
... env NEW_DOMAIN; ... ... perl_set $NEW_DOMAIN 'sub { return $ENV{"NEW_DOMAIN"}; }'; ...
-
Add new rule
location /new-project-name/ { proxy_pass $NEW_DOMAIN; }
-
RUN
$ docker-compose up --build