Skip to content

Instantly share code, notes, and snippets.

@ahonymous
Last active October 9, 2018 07:15
Show Gist options
  • Save ahonymous/48829f2d0511888a2a7c2012675eaefb to your computer and use it in GitHub Desktop.
Save ahonymous/48829f2d0511888a2a7c2012675eaefb to your computer and use it in GitHub Desktop.

MYSQL

docker run --restart unless-stopped -p 3306:3306 --name mysql56 -e MYSQL_ROOT_PASSWORD=pass -d mysql:5.6

MongoDB

docker run -dit --name mongo -p 27017:27017 --restart unless-stopped mongo

Redis

docker run -dit --name redis -p 6379:6379 --restart unless-stopped redis

Rabbit MQ

docker run --restart unless-stopped -dit --name rabbit -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=pass rabbitmq:3-management

Mailcatcher

docker run --restart unless-stopped -dit --name mailcatcher -p 1080:1080 -p 1025:1025 -e MAILCATCHER_PORT_1025_TCP_ADDR=1025 schickling/mailcatcher:latest

Check running ports

lsof -Pni4 | grep LISTEN | grep php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment