I install Apache & mysql with local docker with generate crt & key file.
According to Setup local domain and SSL for PHP-apache container i set docker-compose.yml file & add filed in apache but domain not wokring.
When i enter in local docker & enable site than it’s wokring in docker but not working in browser.
docker-compose up -d than shown error on
RUN a2ensite local.example.com line as site not available.
Here also one problem i fetch as whenever docker restart new created DB is removed.
docker file as below
apacheweb: build: ./php/ volumes: ...... - './code:/var/www/html' container_name: apacheweb ports: - 8000:80 - 8443:443 db: build: ./mysql container_name: db restart: always ports: - "3306" environment: MYSQL_ROOT_PASSWORD: "tec@123"