version: '2'
services:
 app:
  depends_on:
   - db
  image: redisforlosers/hub
  volumes:
   - ./:/hub
  ports:
   - 10000:10000
  container_name: hub
  hostname: hub

 phpmyadmin:
  depends_on:
   - db
  image: phpmyadmin/phpmyadmin
  ports:
   - 18888:80
  container_name: hub-phpmyadmin
  hostname: hub-phpmyadmin

 db:
  image: mysql:5.7
  volumes:
   - dbdata:/var/lib/mysql
  environment:
   MYSQL_ROOT_PASSWORD: lpl_hub_root
   MYSQL_DATABASE: dev_hub
   MYSQL_USER: lpl_hub
   MYSQL_PASSWORD: lpl_hub
  ports:
   - 13307:3306
  container_name: hub-mysql
  hostname: hub-mysql

volumes:
  dbdata:
version: '2'
services:
 app:
  depends_on:
   - db
  image: redisforlosers/hub
  volumes:
   - ./:/hub
  ports:
   - 10000:10000
  container_name: hub
  hostname: hub

 phpmyadmin:
  depends_on:
   - db
  image: phpmyadmin/phpmyadmin
  ports:
   - 18888:80
  container_name: hub-phpmyadmin
  hostname: hub-phpmyadmin

 db:
  image: mysql:5.7
  volumes:
   - dbdata:/var/lib/mysql
  environment:
   MYSQL_ROOT_PASSWORD: lpl_hub_root
   MYSQL_DATABASE: dev_hub
   MYSQL_USER: lpl_hub
   MYSQL_PASSWORD: lpl_hub
  ports:
   - 13306:3306
  container_name: hub-mysql
  hostname: hub-mysql

volumes:
  dbdata:
Update MySQL port on docker container
Update MySQL port on docker container
