Prerequisites:
1. All Installed in an AWS EC2 docker host.
2. install the next tools
2.1. docker, docker-comose
2.2. nginx-docker-compose.yaml
version: '3.8'
services:
nginx:
image: nginx:latest
ports:
- "80:80" # for http
- "443:443" # for https. create and update by letsencrypt.
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf # for update from host
- ./certs:/etc/nginx/certs # for update from host by letsencrypt.
services:
nginx:
image: nginx:latest
ports:
- "80:80" # for http
- "443:443" # for https. create and update by letsencrypt.
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf # for update from host
- ./certs:/etc/nginx/certs # for update from host by letsencrypt.
2.2. nginx-conf
没有评论:
发表评论