Skip to content

Instantly share code, notes, and snippets.

@webarthur
Last active October 30, 2016 23:07
Show Gist options
  • Select an option

  • Save webarthur/71e73416dde88de6c47c04e7a6646835 to your computer and use it in GitHub Desktop.

Select an option

Save webarthur/71e73416dde88de6c47c04e7a6646835 to your computer and use it in GitHub Desktop.
Docker para WordPress com Compose
wp:
image: wordpress:latest
ports:
- 80:80
volumes:
- ./html:/var/www/html/
environment:
WORDPRESS_DB_NAME: wp
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: 123
links:
- db:mysql
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: 123
volumes:
- ./db:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
links:
- db:mysql
environment:
PMA_HOST: mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment