Skip to content

Instantly share code, notes, and snippets.

@lmduc
Created June 11, 2019 14:22
Show Gist options
  • Save lmduc/0d4b5ec00838cf7128a2b4e73ccdf869 to your computer and use it in GitHub Desktop.
Save lmduc/0d4b5ec00838cf7128a2b4e73ccdf869 to your computer and use it in GitHub Desktop.
  1. Create a volume: docker volume create <name>

  2. Elasticsearch: docker run -d --name es6.5.4 -p 9200:9200 -v es6.5.4:/usr/share/elasticsearch/data elasticsearch:6.5.4

  3. PostgreSQL: docker run -d --name psql9.6 -p 5432:5432 -v psql9.6:/var/lib/postgresql/data -e POSTGRES_USER=ducle -e POSTGRES_PASSWORD=123456 -e POSTGRES_DB=ducle postgres:9.6

  4. Redis: docker run --name redis3.2.4 -d -v redis3.2.4:/data -p 6379:6379 redis:3.2.4

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