Last active
April 5, 2017 19:10
-
-
Save toanalien/3d1b543b015035bcc801064e07a27868 to your computer and use it in GitHub Desktop.
use docker-compose deploy database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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