-
-
Save larowlan/5e676598579f3a80afbdceb303338b63 to your computer and use it in GitHub Desktop.
Docker compose for windows Drupal dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
app: | |
image: previousnext/php-apache:7.3-3.x-dev | |
network_mode: bridge | |
ports: | |
- "80:80" | |
- "8910:8910" | |
- "3306:3306" | |
volumes: | |
- .:/data:cached | |
environment: | |
- XDEBUG_CONFIG=remote_host=docker.for.mac.host.internal remote_connect_back=0 | |
- PHP_IDE_CONFIG=serverName=localhost | |
- XDEBUG_ENABLED=0 | |
db: | |
image: mariadb | |
network_mode: service:app | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- MYSQL_DATABASE=local | |
- MYSQL_USER=drupal | |
- MYSQL_PASSWORD=drupal | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drupal Installation notes:
db
as the database hostname.127.0.0.1
as the database hostname.