8000 Improve document and add some feature · BaseMax/ComposeDockerNginxPHP@68beea0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68beea0

Browse files
committed
Improve document and add some feature
1 parent 70804f1 commit 68beea0

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ git clone https://github.com/BaseMax/ComposeDockerNginxPHP.git
7979
then navigate to project directory and start the stack's services locally using Docker Compose:
8080

8181
```console
82-
docker-compose up
82+
docker compose up
8383
```
8484

8585
> **Note**
@@ -90,8 +90,15 @@ Open `http://localhost:8080` in your browser for PHPMyAdmin. You will be prompte
9090

9191
## Configuration
9292

93-
Nginx
94-
The Nginx configuration is located in the nginx directory. The nginx.conf file is the main configuration file. It contains global settings for Nginx such as the number of worker processes, the user that Nginx runs as, and the location of the log files. The sites directory contains the configuration for each site. The sites/default.conf file is the default configuration for all sites. It defines the server block for the default virtual host and sets the document root to /var/www/html. The sites/example.com.conf file is an example configuration for a virtual host for the example.com site. You can add additional virtual host configuration files in this directory for any other sites you want to run on your local machine.
93+
> **Note**
94+
> Configuration is not dynamically reloaded, you will need to restart individual components after any configuration
95+
> change.
96+
97+
### How to configure Nginx
98+
99+
The nginx configuration file is located in the nginx directory. The `nginx.conf` file is main configuration file. It contains global settings for Nginx such as number of worker processes, the user that Nginx runs as, and the location of the log files. The `sites` directory contains the configuration for each site. The sites/default.conf file is the default configuration for all sites. It defines the server block for the default virtual host and sets the document root to `/var/www/html`. The sites/example.com.conf file is an example configuration for a virtual host for the example.com site. You can add additional virtual host configuration files in this directory for any other sites you want to run on your local machine.
100+
101+
95102

96103
Ansible
97104
Ansible is an open-source software provisioning, configuration management, and application-deployment tool. It is used to automate the management of remote servers, including the installation and configuration of software.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
volumes:
4444
- ./php/www:/var/www/html
4545
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
46-
- ./nginx/sites/default.conf:/etc/nginx/conf.d/default
46+
- ./nginx/sites/:/etc/nginx/conf.d/
4747
networks:
4848
- internal
4949

nginx/sites/example.com.conf

Whitespace-only changes.

0 commit comments

Comments
 (0)
0