Skip to content

Instantly share code, notes, and snippets.

@gbrennon
Created March 20, 2017 18:04
Show Gist options
  • Save gbrennon/6e2df1b13700d2a0ca20f0b49913afaf to your computer and use it in GitHub Desktop.
Save gbrennon/6e2df1b13700d2a0ca20f0b49913afaf to your computer and use it in GitHub Desktop.
wordpress-docker
wp:
image: wordpress
links:
- db:mysql
environment:
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_TABLE: wordpress
restart: always
ports:
- 8180:80
volumes:
- ./:/usr/src/wordpress
- ./:/var/www/html
- uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
phpmyadmin:
image: corbinu/docker-phpmyadmin
links:
- db:mysql
ports:
- 8181:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment