Skip to content

Instantly share code, notes, and snippets.

@JulienSansot
Created October 22, 2015 09:07
Show Gist options
  • Select an option

  • Save JulienSansot/4411dcd4bcd8da176cbd to your computer and use it in GitHub Desktop.

Select an option

Save JulienSansot/4411dcd4bcd8da176cbd to your computer and use it in GitHub Desktop.
docker_compose mongo/postgres/redis
mongo:
restart: always
image: mongo:3.0.5
volumes:
- ~/docker_mongodb_data:/data/db
ports:
- "27017:27017"
postgres:
restart: always
image: postgres:9.4.4
volumes:
- ~/docker_postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
restart: always
image: redis:3.0.3
ports:
- "6379:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment