Snippet content copied to clipboard.
Are you sure to delete this snippet? No, don't delete
  1. # Use root/example as user/password credentials
  2. version: '3.1'
  3. services:
  4. php-apache-environment:
  5. container_name: php-apache
  6. build: .
  7. volumes:
  8. - /home/solon/MEGA/docker-php-8:/var/www/html/
  9. - /home/solon/MEGA/docker-php-8/apache.conf:/etc/apache2/sites-available/000-default.conf
  10. ports:
  11. - "80:80"
  12. - "${HOST_HTTPS_PORT}:443"
  13. db:
  14. image: mysql
  15. # NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
  16. # (this is just an example, not intended to be a production configuration)
  17. command: --default-authentication-plugin=mysql_native_password
  18. restart: always
  19. environment:
  20. MYSQL_ROOT_PASSWORD: example
  21. volumes:
  22. - /home/solon/MEGA/docker-php-8/mysql-data:/var/lib/mysql
  23. # adminer:
  24. # image: adminer
  25. # restart: always
  26. # ports:
  27. # - "9906:3306"
  28. phpmyadmin:
  29. image: phpmyadmin/phpmyadmin
  30. ports:
  31. - '7070:80'
  32. #- '3306:80'
  33. restart: always
  34. environment:
  35. PMA_HOST: db
  36. depends_on:
  37. - db

Edit this Snippet