Skip to content

Instantly share code, notes, and snippets.

@alancwoo
Created August 22, 2019 06:45
Show Gist options
  • Save alancwoo/59ceea85bb3f202131aecbf59f6b1347 to your computer and use it in GitHub Desktop.
Save alancwoo/59ceea85bb3f202131aecbf59f6b1347 to your computer and use it in GitHub Desktop.
Simple wordpress docker
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
image: wordpress:5.1.1-php7.3-apache
ports:
- "9000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
working_dir: /var/www/html
volumes:
- ./wp-content:/var/www/html/wp-content
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
volumes:
db_data:
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment