Advertisement
Guest User

Untitled

a guest
Jan 20th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. # mysql ---------------------------------------------
  2. datastore:
  3. image: busybox
  4. volumes:
  5. - /opt/datastore:/var/lib/mysql
  6. container_name: mysql-datastore
  7. mysql:
  8. image: mysql
  9. environment:
  10. MYSQL_ROOT_PASSWORD: password
  11. ports:
  12. - "3306:3306"
  13. volumes_from:
  14. - datastore
  15. container_name: mysql-db
  16. # ---------------------------------------------------
  17.  
  18. # postgres ------------------------------------------
  19. postgres-data:
  20. image: busybox
  21. volumes:
  22. - /var/lib/postgresql/data
  23. container_name: postgres-datastore
  24.  
  25. postgresql:
  26. image: postgres
  27. environment:
  28. POSTGRES_USER: hoge
  29. POSTGRES_PASSWORD: password
  30. ports:
  31. - "5432:5432"
  32. container_name: postgres-db
  33. volumes_from:
  34. - postgres-data
  35. # ---------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement