天天看点

dokcer-compose nginx ssl

[root@hadoop cert]# openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 3650 -out server.crt

nginx :

 docker-compose.yml :

nginx:

volumes:

- ./nginx.conf:/etc/nginx/nginx.conf

- ./rookie/static:/code/rookie/static

- ./rookie/script:/code/rookie/script

- ./default.conf:/etc/nginx/conf.d/default.conf

- ./cert:/etc/nginx/cert

 

继续阅读