Skip to content

Instantly share code, notes, and snippets.

@tbernacchi
Last active June 7, 2017 15:50
Show Gist options
  • Save tbernacchi/e1fa46c9e9ca766e761acfde7bce97e8 to your computer and use it in GitHub Desktop.
Save tbernacchi/e1fa46c9e9ca766e761acfde7bce97e8 to your computer and use it in GitHub Desktop.
version: '2'
services:
db:
image: mysql
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: teste123
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
links:
- db:mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment