# ./docker-compose.yml version: '3' services: db: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: myadminpassword MYSQL_DATABASE: generic_db MYSQL_USER: bpadmin MYSQL_PASSWORD: mypassword ports: - "9906:3306" web: build: context: . dockerfile: Dockerfile container_name: php_web depends_on: - db volumes: - ./php/:/var/www/html/ ports: - "8100:80" stdin_open: true tty: true pma: image: phpmyadmin container_name: phpmyadmin environment: phpmyadmin: https://my_real_domain.com/phpmyadmin/ ports: - "9910:80"