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