Custom WordPress image to run an e-commerce site with 'WooCommerce' Plugin and 'Store Front' theme
10K+
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.
https://github.com/supersqa1/demostore-docker/tree/main
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
$ 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
Content type
Image
Digest
sha256:94a484ff0…
Size
353.7 MB
Last updated
about 1 year ago
docker pull supersqa/demostore-wordpress