Skip to content

Instantly share code, notes, and snippets.

@prantomollick
Created July 24, 2025 11:09
Show Gist options
  • Save prantomollick/23ce31076b1eb4551a40fe5faeebc1d6 to your computer and use it in GitHub Desktop.
Save prantomollick/23ce31076b1eb4551a40fe5faeebc1d6 to your computer and use it in GitHub Desktop.

Revisions

  1. prantomollick created this gist Jul 24, 2025.
    42 changes: 42 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    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