version: '3.8'
services:
apache:
image: httpd:2.4.50
restart: always
#network_mode: host
container_name: apache_1021
volumes:
- ./vhosts:/usr/local/apache2/sites-enabled
- ./extra:/usr/local/apache2/conf/extra
- ./httpd.conf:/usr/local/apache2/conf/httpd.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
depends_on:
- "php"
networks:
- my_net
php:
image: php:7.3.31-fpm
container_name: php_1021b
restart: always
#ports:
# - "9000:9000"
expose:
- 9000
volumes:
- ./data:/data
- ./php-fpm_www.conf:/usr/local/etc/php-fpm.d/www.conf
#tty: true
networks:
- my_net
networks:
my_net:
driver: bridge