version: "2" services: web: image: nginx ports: - "80:80" restart: always volumes: - ./nginx/conf:/etc/nginx - ./nginx/log:/var/log/nginx - /home/www:/www networks: - dlc-dev-network depends_on: - php mysql: image: mysql container_name: mysql command: --default-authentication-plugin=mysql_native_password restart: always volumes: - ./mysql/etc:/etc/mysql - ./mysql/data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=73937393 - MYSQL_USER=antsys - MYSQL_PASSWORD=73937393 - MYSQL_DATABASE=antsys networks: - dlc-dev-network php: image: linyaostalker/php:7.3 restart: always volumes: - /home/www:/www - ./php-fpm/etc:/usr/local/etc/php depends_on: - mongodb - mysql - redis networks: - dlc-dev-network mongodb: image: mongo restart: always volumes: - ./mongodb/data:/data/db - ./mongodb/log:/data/logs environment: - MONGO_INITDB_ROOT_USERNAME=root - MONGO_INITDB_ROOT_PASSWORD=73937393 networks: - dlc-dev-network redis: image: redis restart: always command: [ "bash", "-c", ' docker-entrypoint.sh --requirepass "73937393" ' ] volumes: - ./redis/etc:/usr/local/etc/redis - ./redis/data:/data networks: - dlc-dev-network networks: dlc-dev-network: driver: bridge