Skip to content

Instantly share code, notes, and snippets.

@ItsMurumba
Created October 19, 2020 14:01
Show Gist options
  • Select an option

  • Save ItsMurumba/31ad98f2e966b726fc825ca4f60958f4 to your computer and use it in GitHub Desktop.

Select an option

Save ItsMurumba/31ad98f2e966b726fc825ca4f60958f4 to your computer and use it in GitHub Desktop.
version: '3.2'
services:
db:
image: mysql:8.0
container_name: mysq_server
restart: always
volumes:
- <directory for backup your DB>:/var/lib/mysql
ports:
- '6603:3306'
environment:
MYSQL_ROOT_PASSWORD: <password root for your mysql-server>
app:
depends_on:
- db
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
ports:
- '80:80'
environment:
PMA_HOST: db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment