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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Drupal Installation notes:
db
as the database hostname.127.0.0.1
as the database hostname.