Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.03 KB

File metadata and controls

49 lines (37 loc) · 1.03 KB

docker-nginx

docker-nginx
├── docker-compose.yml
├── etc
│   ├── nginx
│   │   ├── default.conf
│   │   └── default.template.conf
│   └── ssl
│       ├── cacert.pem
│       ├── server.crt
│       └── server.key
└── web
    └── public  
        ├── css
        ├── img
        ├── js
        └── index.html

Install docker compose

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

Just use docker-compose-Linux-x86_64 if you are on Linux-x86_64.

Set web root

Put static web content to the directory docker-niginx/web/public

Set SSL for HTTPS

Replace server.crt, server.key and cacert.pem in directory docker-nginx/etc/ssl

Start

$ docker-compose up

Stop

$ docker-compose down