Skip to content

Instantly share code, notes, and snippets.

@toanalien
Last active April 5, 2017 19:10
Show Gist options
  • Select an option

  • Save toanalien/3d1b543b015035bcc801064e07a27868 to your computer and use it in GitHub Desktop.

Select an option

Save toanalien/3d1b543b015035bcc801064e07a27868 to your computer and use it in GitHub Desktop.
use docker-compose deploy database
version: '2'
services:
postgres:
container_name: postgres
image: postgres
restart: always
ports:
- "5432:5432"
volumes:
- ~/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: 123456
redis:
container_name: redis
image: redis
restart: always
ports:
- "6379:6379"
mongodb:
container_name: mongodb
image: mongo
restart: always
ports:
- "27017:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment