docker-compose.yml 604 B

1234567891011121314151617181920212223242526272829303132333435
  1. version: '3.1'
  2. services:
  3. httpd:
  4. build:
  5. context: ./httpd
  6. depends_on:
  7. - db
  8. ports:
  9. - 80:80
  10. volumes:
  11. - ./www:/var/www/html:rw
  12. - ./sites-available:/etc/apache2/sites-available
  13. db:
  14. container_name: db
  15. image: mariadb
  16. environment:
  17. MYSQL_ROOT_PASSWORD: docker
  18. ports:
  19. - 3306:3306
  20. expose:
  21. - "3306"
  22. volumes:
  23. - db_data:/var/lib/mysql
  24. phpmyadmin:
  25. image: phpmyadmin/phpmyadmin
  26. depends_on:
  27. - db
  28. ports:
  29. - 8181:80
  30. environment:
  31. PMA_USER: root
  32. PMA_PASSWORD: docker
  33. volumes:
  34. db_data: