I’m trying to deploy Production web application in docker-compose, using Apache2, postgreSql & LDAP. To start apache2 server I’m using " /usr/sbin/apachectl -DFOREGROUND" in docker-compose (as I need to attach DB container in back-end), without SSL module it’s absolutely working fine, even it’s authenticating through our AD to login into portal using LDAP. But adding SSL module in Docker file apache2 service failing to start. Below is entry from Dockerfile, prodpapp.yaml error we are getting.
Dockerfile
RUN apachectl configtest
RUN a2ensite default-ssl
RUN a2enmod ssl
prodpapp.yaml
command:bash -c “python /django/phai_web/manage.py migrate --settings=phai_web.settings.prod && python /django/phai_web/manage.py collectstatic --noinput --settings=phai_web.settings.prod && /usr/sbin/apachectl -DFOREGROUND”
Error I’m getting “Action ‘-DFOREGROUND’ failed.”
Can anyone please suggest what need to be done here to work on docker-compose.