Advertisement
Guest User

Untitled

a guest
Apr 13th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. version: '2'
  2. services:
  3. web:
  4. build:
  5. context: ./
  6. dockerfile: deploy/web.docker
  7. volumes:
  8. - ./:/var/www
  9. ports:
  10. - "8080:80"
  11. links:
  12. - app
  13. app:
  14. build:
  15. context: ./
  16. dockerfile: deploy/app.docker
  17. volumes:
  18. - ./:/var/www
  19. links:
  20. - database
  21. - cache
  22. environment:
  23. - "DB_PORT=3306"
  24. - "DB_HOST=database"
  25. - "REDIS_PORT=6379"
  26. - "REDIS_HOST=cache"
  27. database:
  28. image: mysql:5.7
  29. environment:
  30. - "MYSQL_ROOT_PASSWORD=secret"
  31. - "MYSQL_DATABASE=superadmin2"
  32. - "MYSQL_USER=super"
  33. - "MYSQL_PASSWORD=admin"
  34. ports:
  35. - "33061:3306"
  36. cache:
  37. image: redis:3.0
  38. ports:
  39. - "63791:6379"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement