fix name
This commit is contained in:
parent
f24d52a0aa
commit
db604c4b6b
|
|
@ -1,23 +1,23 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mphirs_php:
|
mphris_php:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: mphirs-app
|
image: mphris-app
|
||||||
container_name: mphirs-php-container
|
container_name: mphris-php-container
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /var/www
|
working_dir: /var/www
|
||||||
volumes:
|
volumes:
|
||||||
- .:/var/www
|
- .:/var/www
|
||||||
networks:
|
networks:
|
||||||
- mphirs-network
|
- mphris-network
|
||||||
- laravel-network
|
- laravel-network
|
||||||
|
|
||||||
mphirs_nginx:
|
mphris_nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: mphirs-nginx-container
|
container_name: mphris-nginx-container
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8090:80"
|
- "8090:80"
|
||||||
|
|
@ -25,12 +25,12 @@ services:
|
||||||
- .:/var/www
|
- .:/var/www
|
||||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||||
networks:
|
networks:
|
||||||
- mphirs-network
|
- mphris-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- mphirs_php
|
- mphris_php
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
mphirs-network:
|
mphris-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
laravel-network:
|
laravel-network:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name mphirs-hakimlutfi.my.id;
|
server_name mphris-hakimlutfi.my.id;
|
||||||
|
|
||||||
root /var/www/public;
|
root /var/www/public;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
access_log /var/log/nginx/mphirs_access.log;
|
access_log /var/log/nginx/mphris_access.log;
|
||||||
error_log /var/log/nginx/mphirs_error.log;
|
error_log /var/log/nginx/mphris_error.log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
|
@ -14,7 +14,7 @@ server {
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass mphirs_php:9000;
|
fastcgi_pass mphris_php:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue