apache - Application in docker with https -


i have symfony2 application installing in docker container, , don`t know how apply ssl certs+key inside docker container apache. running elastic beanstalc on amazon docker.

any ideas?

my dockerfile file setup apache/php:

#prepare php , apache  run rm -rf /etc/apache2/sites-available/* /etc/apache2/sites-enabled/*  env app_document_root /var/app/web env apache_run_user www-data env apache_run_group www-data env apache_log_dir /var/log/apache2  add docker/php.ini /usr/local/etc/php/ add docker/000-default.conf /etc/apache2/sites-available/000-default.conf  workdir /var/app 

assuming certs in docker/certs. you'll need add certs container, you'll edit dockerfile include files in proper destination:

add docker/certs/ /etc/apache2/ssl 

this tutorial may out regarding ssl in apache: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04


Comments