Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benoitvallon/docker-php-for-wordpress
Base docker image to run Wordpress (Apache with all php extensions for wordpress installed)
https://github.com/benoitvallon/docker-php-for-wordpress
Last synced: 10 days ago
JSON representation
Base docker image to run Wordpress (Apache with all php extensions for wordpress installed)
- Host: GitHub
- URL: https://github.com/benoitvallon/docker-php-for-wordpress
- Owner: benoitvallon
- Created: 2015-02-18T08:13:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-18T08:14:40.000Z (over 9 years ago)
- Last Synced: 2024-10-11T09:11:04.802Z (about 1 month ago)
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-php-for-wordpress
================Base docker image to run Wordpress (Apache with all php extensions for wordpress installed)
Running the docker image
------------------------------------Start the image binding the external port 80, with your own php code in `/your-code-folder` and a container running mysql named `your-mysql-container`:
docker run -d -p 80:80 --name docker-php-for-wordpress \
--link your-mysql-container:mysql \
--volume /your-code-folder:/var/www/html \
benoitvallon/docker-php-for-wordpressRunning the docker image with docker-compose
------------------------------------yourprestashop:
image: benoitvallon/docker-php-for-wordpress
restart: always
ports:
- "80:80"
links:
- your-mysql-container:mysql
volumes:
- /your-code-folder:/var/www/htmlAdding mail support with ssmtp
------------------------------------If you want the support of mails with ssmtp, you can mount your ssmtp configuration files with a volume.
--volume /your-ssmtp-configuration-folder:/etc/ssmtp
Building the base image
-----------------------To create the base image `docker-php-for-wordpress`, execute the following command on the docker-php-for-wordpress folder after a git clone on the repo:
docker build -t docker-php-for-wordpress .