version: '3.3' services: app: container_name: app_php build: context: ./ ports: - 82:80 environment: MYSQL_HOST: mysql MYSQL_USER: root MYSQL_PASSWORD: root MYSQL_DATABASE: bank depends_on: - mysql mysql: image: mysql:8.0 container_name: 'mysql-server-80' volumes: - mysql-data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: bank ports: - "8082:3306" volumes: mysql-data: