Skip to content

Commit

Permalink
Added dockerfiles for local deving, thanks @mgirouard
Browse files Browse the repository at this point in the history
  • Loading branch information
manatarms committed Sep 23, 2020
1 parent 5d55f85 commit e2a5871
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.wordpress
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM wordpress:latest
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& mv wp-cli.phar /usr/local/bin/wp
42 changes: 42 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: '3'

services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress

wordpress:
depends_on:
- db
build:
dockerfile: Dockerfile.wordpress
context: .
volumes:
- ./:/var/www/html/wp-content/plugins/cloudflare
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress

adminer:
image: adminer
restart: always
ports:
- 8080:8080
depends_on:
- db

volumes:
db_data: {}

0 comments on commit e2a5871

Please sign in to comment.