version: "3" networks: jsonrpc-weather-backend_gate: external: true services: php: build: context: devops/docker/php args: HOME: "$HOME" USER: "$USER" UID: "$UID" GID: "$GID" restart: unless-stopped environment: - COMPOSER_MEMORY_LIMIT=-1 - PHP_IDE_CONFIG=serverName=${COMPOSE_PROJECT_NAME} - PROJECT_PORT="8$PROJECT_ID" volumes: - ./:/var/www/localhost/htdocs/current - ${HOME}/.composer:${HOME}/.composer - ${HOME}/.ssh:${HOME}/.ssh expose: - "9000" networks: - jsonrpc-weather-backend_gate nginx: image: nginx:1.19 restart: unless-stopped depends_on: - php volumes: - ./:/var/www/localhost/htdocs/current - ./devops/docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf ports: - "8$PROJECT_ID:80" networks: - jsonrpc-weather-backend_gate