Skip to content

Instantly share code, notes, and snippets.

@cristianorsolin
Created May 3, 2018 13:35
Show Gist options
  • Save cristianorsolin/ea45131ffd85ebfd3b76118a50393787 to your computer and use it in GitHub Desktop.
Save cristianorsolin/ea45131ffd85ebfd3b76118a50393787 to your computer and use it in GitHub Desktop.
docker compose lamp stack
web:
image: orsolin/amazonlinux-apache-php
ports:
- "80:80"
links:
- db
- mailcatcher
volumes:
- .:/app
environment:
#- PHP_XDEBUG_ENABLED=true
- HOST_UID=1000
db:
image: mysql:5.6
ports:
- "3306:3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=
mailcatcher:
image: jeanberu/mailcatcher
ports:
- "1080:1080"
- "1025:1025"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment