version: "3" services: nginx: build: nginx image: ${DOCKER_PREFIX}-nginx container_name: ${DOCKER_PREFIX}-nginx ports: - ${DOCKER_NGINX_PORT}:80 volumes: - ./../:/var/www/balticrest.ru depends_on: - php-fpm php-fpm: build: php-fpm image: ${DOCKER_PREFIX}-php-fpm container_name: ${DOCKER_PREFIX}-php-fpm environment: PHP_IDE_CONFIG: "serverName=${DOCKER_PREFIX}" ports: - 9000 volumes: - ./../:/var/www/balticrest.ru depends_on: - mysql mysql: build: mysql image: ${DOCKER_PREFIX}-mysql container_name: ${DOCKER_PREFIX}-mysql ports: - ${DOCKER_MYSQL_PORT}:3306 volumes: - ./mysql/data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=${DOCKER_MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE=${DOCKER_MYSQL_DATABASE} - MYSQL_USER=${DOCKER_MYSQL_USER} - MYSQL_PASSWORD=${DOCKER_MYSQL_PASSWORD} pma: build: pma image: ${DOCKER_PREFIX}-pma container_name: ${DOCKER_PREFIX}-pma ports: - ${DOCKER_PMA_PORT}:80 depends_on: - mysql environment: - PMA_HOST=mysql - PMA_USER=${DOCKER_MYSQL_USER} - PMA_PASSWORD=${DOCKER_MYSQL_PASSWORD} volumes: - ./mysql/data:/var/lib/mysql supervisor: build: supervisor image: ${DOCKER_PREFIX}-supervisor container_name: ${DOCKER_PREFIX}-supervisor volumes: - ./../:/var/www/balticrest.ru depends_on: - php-fpm