Skip to content

Victor-Boyer/docker-nginx-cerbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

docker-nginx-certbot

An easy way to upload your wordpress website with Docker, Nginx and Certbot.

This configuration will create automatically a reverse proxy, a sll certification for your domain and a empty wordpress.

Installation

  • Install docker.

  • Clone this repository

  • Go to the following folder
cd /docker-nginx-certbot/docker
  • Create the .env file from the sample with your values
mv .env.sample .env

Custom domain name

cd /docker-nginx-certbot/docker/nginx-conf

1. default.conf

You have to change :

  • Line 5
...
server_name example.com www.example.com;
...

2. ssl-default.conf

You have to change :

  • Line 5
...
server_name example.com www.example.com;
...
  • Line 20
...
server_name example.com www.example.com;
...
  • Line 28 - 29
...
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
...

Usage

Note : For staging application, add --staging in docker-nginx-cerbot/docker/script line 18

Launch docker

docker-compose up -d

Note : You surely must have the root permissions to start docker.

sudo docker-compose up -d

If docker-compose don't work, try

docker compose up -d

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors