Skip to content

Instantly share code, notes, and snippets.

@cinco
Last active March 9, 2020 20:27
Show Gist options
  • Save cinco/9d04dea04b059acbd5911225f59bdabe to your computer and use it in GitHub Desktop.
Save cinco/9d04dea04b059acbd5911225f59bdabe to your computer and use it in GitHub Desktop.
version: '3.6'
services:
pma:
container_name: recover_phpmyadmin
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: "senharootmariadb"
ports:
- ${IP}:8082:80
links:
- db:db
db:
container_name: recover_db
image: mariadb:10.3.22 # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
ports:
- ${IP}:3306:3306 # change ip if required
command: [
'--default_authentication_plugin=mysql_native_password',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
volumes:
- ./wp-data:/docker-entrypoint-initdb.d
- ./db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "senharootmariadb"
volumes:
db_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment