change name

This commit is contained in:
Lutfi Hakim 2026-05-02 17:20:45 +07:00
parent db604c4b6b
commit 2a587d57f2
2 changed files with 13 additions and 13 deletions

View File

@ -1,23 +1,23 @@
version: '3' version: '3'
services: services:
mphris_php: hrismp_php:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: mphris-app image: hrismp-app
container_name: mphris-php-container container_name: hrismp-php-container
restart: unless-stopped restart: unless-stopped
working_dir: /var/www working_dir: /var/www
volumes: volumes:
- .:/var/www - .:/var/www
networks: networks:
- mphris-network - hrismp-network
- laravel-network - laravel-network
mphris_nginx: hrismp_nginx:
image: nginx:alpine image: nginx:alpine
container_name: mphris-nginx-container container_name: hrismp-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:
- mphris-network - hrismp-network
depends_on: depends_on:
- mphris_php - hrismp_php
networks: networks:
mphris-network: hrismp-network:
driver: bridge driver: bridge
laravel-network: laravel-network:

View File

@ -1,12 +1,12 @@
server { server {
listen 80; listen 80;
server_name mphris-hakimlutfi.my.id; server_name hrismp.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/mphris_access.log; access_log /var/log/nginx/hrismp_access.log;
error_log /var/log/nginx/mphris_error.log; error_log /var/log/nginx/hrismp_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 mphris_php:9000; fastcgi_pass hrismp_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;