Sign inSign up

supersqa/demostore-wordpress

By supersqa

Updated about 1 year ago

Custom WordPress image to run an e-commerce site with 'WooCommerce' Plugin and 'Store Front' theme

Image
0

10K+

supersqa/demostore-wordpress repository overview

DemoStore SuperSQA with Docker

This repository contains a Docker Compose setup for deploying a web application using WordPress and MySQL. It provides a convenient way to set up and run the application in a containerized environment.

This will ba preconfigured e-commerce application with some sample products. Example site: http://demostore.supersqa.com

This is docker containers will run exact copy of the site mentioned above.

Github repo to build your own images

https://github.com/supersqa1/demostore-docker/tree/main

Important

  • Change the passwords in the example docker-compose.yml (if running locally it will be ok not to change it)
  • You must use port 7575 for the host machine (The site is accessed with port 7575)
  • You must set variable 'WORDPRESS_IP' if you are not running it on local. If running the site on IP other than 0.0.0.0. For example, if you have a VPS with port xx.xxx.xxx.x then you have to set variable WORDPRESS_IP=xx.xxx.xxx.x. If running on local you do not need the variable.
  • You can connect to the database with a MySQL client like MySQL Workbench using port 3309

Example docker-compose.yml

version: '3.8'

services:
  db:
    image: supersqa/demostore-mysql:5.7
    restart: always
    container_name: my_mysql_container
    ports:
      - 3309:3306
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: demostore
      MYSQL_USER: wordpress
      MYSQL_PASSWORD: password


  wordpress:
    depends_on:
      - db
    image: supersqa/demostore-wordpress:6.2.2
    container_name: my_wordpress_container
    ports:
      - "7575:80"
    restart: always
    environment:
      WORDPRESS_DB_HOST: my_mysql_container:3306
      WORDPRESS_DB_USER: wordpress
      WORDPRESS_DB_PASSWORD: password
      WORDPRESS_DB_NAME: demostore
      WORDPRESS_IP: ${WORDPRESS_IP:-0.0.0.0}
    entrypoint: /entrypoint-custom.sh
Command to run the containers
$ cd <directory where docker-compose.yml is>
$ WORDPRESS_IP=123.45.678.0 docker-compose up -d

or

$ cd <directory where docker-compose.yml is>
$ export WORDPRESS_IP=123.45.678.0
$ docker-compose up -d

Access the e-commerce site

http://123.45.678.0:7575

or if running on local

http://0.0.0.0:7575

Tag summary

Content type

Image

Digest

sha256:94a484ff0

Size

353.7 MB

Last updated

about 1 year ago

docker pull supersqa/demostore-wordpress