Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 353be6f

Browse files
authored
Update README.md
1 parent c6ead60 commit 353be6f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

‎README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# Nginx, Php-fpm and MySQL/PostgreSQL stack with Certbot from Docker compose
22

3-
```
4-
This repository is accompanied by a step-by-step guide on [Boilerplate for nginx with Let’s Encrypt on docker-compose](https://github.com/wmnnd/nginx-certbot).
5-
```
3+
4+
> This repository is accompanied by a step-by-step guide on [Boilerplate for nginx with Let’s Encrypt on docker-compose](https://github.com/wmnnd/nginx-certbot).
5+
66

77
This repo to create Nginx, Php-fpm and MySQL/PostgreSQL stack with Certbot from docker-compose.yml file.
88

9-
init-letsencrypt.sh fetches and ensures the renewal of a Let’s Encrypt certificate for one or multiple domains in a docker-compose setup with nginx. This is useful when you need to set up nginx as a reverse proxy for an application.
9+
```init-letsencrypt.sh``` fetches and ensures the renewal of a Let’s Encrypt certificate for one or multiple domains in a docker-compose setup with nginx. This is useful when you need to set up nginx as a reverse proxy for an application.
1010

1111
## Installation
1212
1. Install docker-compose.
1313

1414
2. Clone this repository: ``` git clone https://github.com/tobing/nginx-certbot-php-mysql-docker.git```
1515

1616
3. Modify configuration:
17-
Add domains and email addresses to init-letsencrypt.sh
18-
- Replace all occurrences of example.org with primary domain (the first one you added to init-letsencrypt.sh) in data/nginx/app.conf
19-
- Run the init script: ```./init-letsencrypt.sh```
17+
- Add domains and email addresses to init-letsencrypt.sh
18+
- Replace all occurrences of example.org with primary domain in ```/nginx/app.conf``` and ```/nginx.localhost/app.conf```
19+
- Uncomment ```- ./nginx.localhost:/etc/nginx/conf.d``` and comment ```- ./nginx:/etc/nginx/conf.d``` in docker-compose.yml file. This setting to generate certificate for the first time
20+
4. Run the init script: ```./init-letsencrypt.sh```
21+
22+
5. Comment ```- ./nginx.localhost:/etc/nginx/conf.d``` and uncomment ```- ./nginx:/etc/nginx/conf.d``` in docker-compose.yml file.
2023

21-
4. Run the server: ```docker-compose up```
24+
6. Run the server: ```docker-compose up```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /