version: '3.8'
services:
apache:
image: php:7.4.25-apache
restart: always
#network_mode: host
container_name: httpd_1024
volumes:
#- ./vhosts:/etc/apache2/sites-enabled
#- ./extra:/usr/local/apache2/conf/extra
#- ./apache2.conf:/etc/apache2/apache2.conf
#- ./logs:/usr/local/apache2/logs
#- ./html:/usr/local/apache2/htdocs
- ./data:/data
ports:
- 8080:80
#privileged:true
environment:
# - NGINX_HOST=ap.local.lren.org
- NGINX_PORT=80
#command: ['sh','-c','docker-php-ext-install','pdo_mysql']
- linux: docker-compose.yml
version: '3.8'
services:
php:
image: php:7.4.25-apache
restart: always
#network_mode: host
container_name: phttpd_1024
volumes:
- ./vhosts:/etc/apache2/sites-enabled
#- ./extra:/etc/apache2//extra
- ./html:/var/www
- ./cert:/etc/apache2/cert
- ./ports.conf:/etc/apache2/ports.conf
- ./apache2.conf:/etc/apache2/apache2.conf
- ./logs:/usr/local/apache2/logs
- /data/wphp:/data/wphp
ports:
- 8080:80
- 8443:443
#privileged: true
environment:
#- NGINX_HOST=ap.local.lren.org
- APACHE_PORT=80
- APACHE_LOG_DIR=/usr/local/apache2/logs
#- APACHE_RUN_USER=apache2
#- APACHE_RUN_GROUP=apache2