Created
          July 24, 2025 11:09 
        
      - 
      
- 
        Save prantomollick/23ce31076b1eb4551a40fe5faeebc1d6 to your computer and use it in GitHub Desktop. 
    Docker Compose steup for wordpress
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: '3.9' | |
| services: | |
| mysql: | |
| image: mysql:latest | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: gamestore | |
| ports: | |
| - "3308:3306" | |
| volumes: | |
| - ./.srv/database:/var/lib/mysql | |
| wordpress: | |
| image: wordpress:latest | |
| restart: always | |
| environment: | |
| WORDPRESS_DB_HOST: mysql:3306 | |
| WORDPRESS_DB_USER: root | |
| WORDPRESS_DB_PASSWORD: root | |
| WORDPRESS_DB_NAME: gamestore | |
| ports: | |
| - "8000:80" | |
| volumes: | |
| - ./.srv/wordpress:/var/www/html | |
| - ./themes/:/var/www/html/wp-content/themes/ | |
| - ./plugins/:/var/www/html/wp-content/plugins/ | |
| - ./mu-plugins/:/var/www/html/wp-content/mu-plugins/ | |
| - ./.srv/custom.ini:/usr/local/etc/php/conf.d/custom.ini | |
| depends_on: | |
| - mysql | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin:latest | |
| environment: | |
| MYSQL_USERNAME: root | |
| MYSQL_ROOT_PASSWORD: root | |
| PMA_HOST: mysql | |
| ports: | |
| - "8181:80" | |
| depends_on: | |
| - mysql | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment