Skip to content

Commit 96d1d17

Browse files
Merge pull request #15 from alvinjohnsonso/docker-test-files
Wordpress docker files - added docker files for running a test environment
2 parents 90d9456 + ee9570e commit 96d1d17

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

docker/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Wordpress
2+
============
3+
Docker container for Wordpress.
4+
5+
## Information
6+
- Wordpress Version: Latest
7+
- MySQL Version: 5.7
8+
9+
## Pre-Requisites
10+
- install docker-compose [http://docs.docker.com/compose/install/](http://docs.docker.com/compose/install/)
11+
12+
## Usage
13+
Start the container:
14+
- ```docker-compose up```
15+
16+
Stop the container:
17+
- ```docker-compose stop```
18+
19+
Destroy the container and start from scratch:
20+
- ```docker-compose down```
21+
- ```docker volume rm wordpress_db_data wordpress_web_data```
22+
23+
## Plugin setup
24+
You can follow the instruction in the [Wordpress KB Article](https://help.tawk.to/article/wordpress)

docker/docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.3'
2+
3+
services:
4+
db:
5+
image: mysql:5.7
6+
volumes:
7+
- db_data:/var/lib/mysql
8+
restart: always
9+
environment:
10+
MYSQL_ROOT_PASSWORD: somewordpress
11+
MYSQL_DATABASE: wordpress
12+
MYSQL_USER: wordpress
13+
MYSQL_PASSWORD: wordpress
14+
15+
wordpress:
16+
depends_on:
17+
- db
18+
image: wordpress:latest
19+
ports:
20+
- "8000:80"
21+
restart: always
22+
environment:
23+
WORDPRESS_DB_HOST: db:3306
24+
WORDPRESS_DB_USER: wordpress
25+
WORDPRESS_DB_PASSWORD: wordpress
26+
WORDPRESS_DB_NAME: wordpress
27+
volumes:
28+
db_data: {}

0 commit comments

Comments
 (0)