version: '3' services: nginx: build: context: ./docker_dev dockerfile: nginx.docker restart: always ports: - "8889:80" volumes: - ./:/app:cached depends_on: - php-fpm php-fpm: cap_add: - NET_ADMIN build: context: ./docker_dev dockerfile: php-fpm.docker restart: always volumes: - ./:/app:cached environment: XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1" PHP_IDE_CONFIG: "serverName=Docker" php-cli: cap_add: - NET_ADMIN build: context: ./docker_dev dockerfile: php-cli.docker restart: always volumes: - .:/app:cached working_dir: /app tty: true environment: XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1" PHP_IDE_CONFIG: "serverName=Docker" amic-mysql: image: mariadb:latest restart: always volumes: - ./:/app:cached working_dir: /app environment: MYSQL_DATABASE: "amic_new" MYSQL_USER: "work" MYSQL_PASSWORD: "work" MYSQL_ROOT_PASSWORD: "root_password" tty: true ports: - "33063:3306"