Skip to content

Instantly share code, notes, and snippets.

@larowlan

larowlan/docker-compose.yml Secret

Created Oct 21, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@kimpepper kimpepper commented Nov 27, 2019

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
You can’t perform that action at this time.