Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. version: "3.7"
  2. services:
  3. api:
  4. image: docker.pkg.github.com/jonathanstaniforth/laravel-docker/laravel-mysql:v1.0
  5. ports:
  6. - 80:80
  7. - 443:443
  8. volumes:
  9. - ./:/var/www/html
  10. - ./apache:/etc/apache2/sites-available
  11. - ./apache:/etc/apache2/sites-enabled
  12. depends_on:
  13. - database
  14. networks:
  15. - overlay
  16.  
  17. database:
  18. image: mysql
  19. command: --default-authentication-plugin=mysql_native_password
  20. environment:
  21. MYSQL_ROOT_PASSWORD: <root_password>
  22. MYSQL_USER: <user_name>
  23. MYSQL_PASSWORD: <user_password>
  24. MYSQL_DATABASE: <database_name
  25. volumes:
  26. - type: bind
  27. source: ./dbdata
  28. target: /var/lib/mysql
  29. ports:
  30. - 3306:3306
  31. networks:
  32. - overlay
  33.  
  34. networks:
  35. overlay:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement