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