Advertisement
spacerose

Untitled

Oct 11th, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. version: '3.6'
  2.  
  3. services:
  4. apache:
  5. image: httpd:2.4
  6. volumes:
  7. - ./src:/var/www/html
  8. - ./httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf
  9. # - ./httpd/httpd.conf:/etc/apache2/conf/httpd.conf
  10. depends_on:
  11. - php
  12.  
  13. nginx:
  14. image: nginx:1.13
  15. ports:
  16. - 80:80
  17. volumes:
  18. - ./src:/var/www/html
  19. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  20. depends_on:
  21. - apache
  22.  
  23. php:
  24. build: .
  25. # image: php:7.2-fpm
  26. volumes:
  27. - ./src:/var/www/html
  28. environment:
  29. DB_PORT: 3304
  30. DB_HOST: db
  31.  
  32.  
  33. db:
  34. image: mysql
  35. command: --default-authentication-plugin=mysql_native_password
  36. restart: always
  37. environment:
  38. MYSQL_ROOT_PASSWORD: db
  39. MYSQL_USER: user
  40. MYSQL_PASSWORD: password
  41. MYSQL_DATABASE: appDB
  42. ports:
  43. - 3304:3304
  44. volumes:
  45. - ./src/init.sql:/docker-entrypoint-initdb.d/init.sql
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement