Guest User

Untitled

a guest
Jan 6th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. # v2 syntax
  2. version: '2'
  3.  
  4. # Named volumes
  5. volumes:
  6. # MySQL Data
  7. barberpoints-mysql-data:
  8. driver: local
  9.  
  10. # Redis Data
  11. barberpoints-redis-data:
  12. driver: local
  13.  
  14. services:
  15. # MySQL (5.7)
  16. mysql:
  17. image: mysql:5.7
  18. container_name: barberpoints-mysql
  19. volumes:
  20. - barberpoints-mysql-data:/var/lib/mysql
  21. ports:
  22. - "${DB_PORT}:3306"
  23. environment:
  24. - MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
  25. - MYSQL_DATABASE=${DB_DATABASE}
  26. - MYSQL_USER=${DB_USERNAME}
  27. - MYSQL_PASSWORD=${DB_PASSWORD}
  28.  
  29. # Redis
  30. cache:
  31. image: redis:4.0
  32. container_name: barberpoints-redis
  33. command: --appendonly yes
  34. volumes:
  35. - barberpoints-redis-data:/data
  36. ports:
  37. - "${REDIS_PORT}:6379"
  38.  
  39. # PHP (with Nginx)
  40. # you can change from nginx to apache, just change session 'image'
  41. app:
  42. image: ambientum/php:7.2-nginx
  43. container_name: barberpoints-app
  44. volumes:
  45. - .:/var/www/app
  46. ports:
  47. - "${APP_PORT}:8080"
  48. links:
  49. - mysql
  50. - cache
  51.  
  52. # Laravel Queues
  53. queue:
  54. image: ambientum/php:7.2
  55. container_name: barberpoints-queue
  56. command: php artisan queue:listen
  57. volumes:
  58. - .:/var/www/app
  59. links:
  60. - mysql
  61. - cache
Add Comment
Please, Sign In to add comment