Skip to content

Instantly share code, notes, and snippets.

@larowlan
Created October 21, 2019 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larowlan/5e676598579f3a80afbdceb303338b63 to your computer and use it in GitHub Desktop.
Save larowlan/5e676598579f3a80afbdceb303338b63 to your computer and use it in GitHub Desktop.
Docker compose for windows Drupal dev
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
@kimpepper
Copy link

Drupal Installation notes:

  • MacOS: you need to use db as the database hostname.
  • Linux: you need to use 127.0.0.1 as the database hostname.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment