A simple example SLL for docker-compose?

0 like 0 dislike
6 views
Generate yourself compose the file and had a question. As the most simple way to sign it all letsencrypt certificate.

Googled, found nothing simple, only the option to rebuild the compose file. Passing tips for the configuration would be very welcome.

############################################################################### # Generated on phpdocker.io # ############################################################################### version: "3.1" services: mysql: image: mysql:5.6 container_name: mysql-cont working_dir: /application volumes: - ./dbdata:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=root_pass - MYSQL_DATABASE=db - MYSQL_USER=user - MYSQL_PASSWORD=passw ports: - "10002:3306" webserver: image: nginx:alpine container_name: webserver-cont working_dir: /application volumes: - .:/application - ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf ports: - "10001:80" depends_on: - php-fpm php-fpm: build: phpdocker/php-fpm container_name: php-fpm-cont working_dir: /application volumes: - .:/application - ./phpdocker/php-fpm/php. ini overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini depends_on: - mysql


server { listen 80 default; client_max_body_size 108M; access_log /var/log/nginx/application.access.log; root /application/public; index index.php; if (!-e $request_filename) { rewrite ^.*$ /index.php last; } location ~ \\.php$ { location php-fpm:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; fastcgi_buffers directives 16 16k; set by the fastcgi_buffer_size 32k; include fastcgi_params; } }


Thank you.
by | 6 views

1 Answer

0 like 0 dislike
composer create-project kelunik/acme-client php vendor/bin/acme auto


\rhttps://github.com/kelunik/acme-client

Just do not forget that you have it all on the server must be deployed, because the certificate is tied to the domain.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,932 users