shiftcalc/docker-compose.yml

36 lines
876 B
YAML

services:
php:
build:
context: .
dockerfile: docker/php/Dockerfile
args:
INSTALL_XDEBUG: ${ENABLE_XDEBUG}
environment:
ENABLE_XDEBUG: ${ENABLE_XDEBUG}
container_name: app-php
working_dir: /var/www/html
volumes:
- ./docker/php/entrypoint.sh:/entrypoint.sh
- ./:/var/www/html:Z
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint: [ "sh", "/entrypoint.sh" ]
networks:
- apps
web:
image: docker.io/library/httpd:2.4
container_name: app-web
depends_on: [php]
ports:
- "8000:80"
volumes:
- ./docker/apache/entrypoint.sh:/entrypoint.sh
- ./public:/usr/local/apache2/htdocs:Z
- ./docker/apache/vhost.conf:/usr/local/apache2/conf/extra/vhost.conf:ro,Z
command: [ "sh", "/entrypoint.sh" ]
networks:
- apps
networks:
apps: