I'm trying to configure IPv6 on my docker container. I want to expose port 80 on my IPv6. But my website still not working on IPv6. How to check where is the problem? Maybe someone can find it in my config files:
docker-compose.yml:
version: '3'
services:
web:
container_name: ci4
build:
context: ./docker
ports:
- 80:80
volumes:
- ./:/var/www/html
Dockerfile
FROM php:7.4-apache
RUN apt-get update && apt-get install -y
COPY 000-default.conf /etc/apache2/sites-available/
COPY ports.conf /etc/apache2/
RUN a2enmod rewrite
RUN service apache2 restart
ports.conf:
Listen [::]:80
000-default.conf
<VirtualHost [::]:80>
DocumentRoot "/var/www/html/public/"
ServerName localhost
<Directory "/var/www/html/public/">
AllowOverride all
</Directory>
</VirtualHost>
Thanks for any help.